Skip to main content

Bridge Token

For the Syndicate's Bridge tokens connection between chains, used syndicate token to make a mapping with donor token

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

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 change it's symbol (like proxy contract), the following changes could be made to change it for syndicate 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 aren't not implemented for bridge usage (will be in Version 1).