BSC ↔ Fuse ERC20
Fuse <-> BSC ERC20 bridge is used to relay the ERC20 tokens between Fuse and Binance Smart Chain networks.
This bridge is a two layer bridge. The Arbitrary Message Bridge (AMB) is responsible for relaying messages between the networks at the base level. On top of the AMB, the pluggable mediators implement a contract logic of token relaying of various assets.
The BSC bridge is restricted, meaning only the Fuse team can add new tokens. This is done because the new tokens need to get associated manually with the tokens on the Fuse network.
Currently, only WETH is supported for that bridge. More tokens are coming soon.
To send tokens from the BSC network:
- 1.Approve the ERC20 tokens to be spent by the Foreign ERC20 bridge.
- 2.Call relayTokens function on the bridge contract
relayTokensmethod will lock the ERC20 tokens on the foreign bridge. Then an equal amount of the Fuse ERC20 token will be sent from the home bridge contract.
To send tokens from the Fuse Network
- 1.Approve the ERC20 tokens to be spent by the Home ERC20 bridge.
relayTokensfunction on the bridge contract
relayTokensthe method will lock the bridged tokens on the home bridge. Then, an equal amount of the paired ERC20 token will be sent from the foreign bridge contract.