Skip to content

Treasury and token contracts (right side of the bridge)

License

Notifications You must be signed in to change notification settings

financengine/tokensale-right

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tokensale-right

Right side of the Bridge, ERC20 compatible Token and Treasury to exchange tokens to coins

Before tokensale

  • 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

Tokensale

After tokensale

  • 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 to OraclesToken contract.

Users are able to exchange their tokens to coins at the right side with sending transfer transaction on OraclesContract to Treasury_address.

About

Treasury and token contracts (right side of the bridge)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published