The L2Bridge is a cross-layer-2 protocol that provides asset transfer between existing L2 networks. The main idea is to sacrifice the time cost of the Liquidiy Provider and make the user transfer their asset real time.
L2BridgeSource.sol
: source bridge for user to deposit the source token and for LP to withdraw the source tokenL2BridgeDestination.sol
: destination bridge for LP to buy user's source tokenOptimismL1Bridge.sol
: Layer1 bridge that sync the status between source and destination bridge on Layer 2
Name | Address |
---|---|
L1 Bridge | 0x34Fb74842eFd8f43EaB03DE3c713868D0ba6dC0c |
Name | Address |
---|---|
L2 Source Bridge | 0x524867916F136b56083b7b1F071d228361A6600E |
L2 Destination Bridge | 0x0AD853E840cCa279F24c59698751aD2635E5c533 |
L2 Source Token (USDC) | 0xF495b9DE9143e9CB81087880d089aA161Bb6B82B |
L2 Destination Token (USDT) | 0x352ad2db4b7695B2919e0926FF7659FEa16d7f5C |
You can deploy and run the app locally, or reuse the contracts and app following the demo.