User Roles

Users send assets to the bridge contracts and receive corresponding assets in return.

  1. NATIVE-TO-ERC mode: send native coins to the Home bridge contract to receive ERC20 tokens from the Foreign bridge contract, send ERC20 tokens to the Foreign bridge contract to unlock native coins from the Home bridge contract.

  2. ERC-TO-NATIVE mode: send ERC20 tokens to the Foreign bridge contract to receive native coins from the Home bridge contract, send native coins to the Home bridge contract to unlock ERC20 tokens from the Foreign bridge contract.

  3. ERC-TO-ERC mode: transfer ERC20 tokens to the Foreign bridge contract to mint ERC20 tokens on the Home network, transfer ERC20 tokens to the Home bridge contract to unlock ERC20 tokens on the foreign network;

Edit on GitHub