Right side of the Bridge, ERC20 compatible Token and Treasury to exchange tokens to coins
- Right-side bridge contract
ForeignBridge
is deployed to the network. Parameters of the constructor:
Param | Type | Description | Value |
---|---|---|---|
n | uint256 | Number of authorities to approve deposit tokens | 1 |
a | address[] | Array of authorities' addresses | [addr_will_send_deposit_tx_to_contract] |
- ERC20 compatible token
OraclesToken
contract is deployed to the network. Parameters of the token constructor:
Param | Type | Description | Value |
---|---|---|---|
_bridgeAddress | address | Right-side bridge contract address | ForeignBridge_address |
_totalSupplyItems | uint256 | Token total supply for crowdsale | 176722560 |
_decimals | uint256 | Token decimals | 18 |
Token total supply is transfered to the right-side bridge contract address balance at deployment.
- Bridge is configured and started
Treausury
contract is deployed to the network.Initialize
transaction is sent to treasury with params:
Param | Type | Description |
---|---|---|
_token | address | Token contract address |
_rate | uint256 | Rate, at which tokens will be exchanged to coins Number_of_coins = Number_of_tokens * Rate |
setTreasury
transaction is sent toOraclesToken
contract.
Users are able to exchange their tokens to coins at the right side with sending transfer
transaction on OraclesContract
to Treasury_address
.