Skip to main content

Bridge Token

To establish the connection between chains, the Bridge utilizes the exoswap token to create a mapping with the donor token.

The whole design is simple. It is an ERC-20 contract with mint/burn functions, where Bridge Token Manager will handle the token mapping, and the Bridge Router will only have access to perform this operation.

Base functionality

The core and important logic for bridge token

mint

function mint(address to, uint256 amount) external;
  • Allows only Bridge Router to perform this operation by EOA/Contract;
  • Should mint only in the same equivalent as locked donored tokens;

burn

function burn(address from, uint256 amount) external;
  • Allows only Bridge Router to perform this operation by EOA/Contract;
  • Should burn only in the same equivalent for next donored tokens unlock;

Donored token symbol changed?

In case donored token changes its symbol (like proxy contract), the following changes could be made to update it for Exoswap Token by SAO.

updateTokenInfo

function updateTokenInfo(
string calldata _newName,
string calldata _newSymbol,
uint8 _newDecimals
) external;
  • Allows only Bridge Router to perform this operation by SAO;
  • Should not change decimals;

NOTE: updateTokenInfo function is not implemented for bridge usage (will be in Version 1).