Comment on page
SEuroOffering
All public interfaces for the SEuroOffering contract
address _seuroAddr
address of the sEURO token that will be mintedGiven an ERC20 token, swaps for an equivalent amount of sEURO.
parameters:
string _token, uint256 _amount
_token
is the symbol of the ERC20 you'd like to swap._amount
is the amount of the token that you'd like to swap.- SEuroOffering must be activated
- User has approved the SEuroOffering contract to spend the given amount of the ERC20
Payable function that swaps the value of the transaction for the equivalent amount of sEURO.
- SEuroOffering must be activated
- SEuroOffering must not be paused
Read-only function to estimate how much sEURO will be purchased with the given amount of given token/coin.
parameters:
string _token, uint256 _amount
returns:
uint256 seuros
_token
is the symbol of the ERC20 you'd like to swap. To estimate an ETH swap, provide "ETH" as the _token
parameter._amount
is the amount of the token/coin that you'd like to swap.seuros
is the amount of seuros received by the user in the swapMakes the SEuroOffering active for public use, allowing users to swap. Records the time the offering was activated.
User must be contract owner
Deactivates the SEuroOffering, thus preventing users from swapping. Records the time the offering was completed.
User must be contract owner
parameters:
address _newAddress
User must be contract owner
parameters:
address _newAddress
User must be contract owner
parameters:
address _newAddress
User must be contract owner
Updates the address of the wallet, to which you would like all swapped collateral to be transferred.
parameters:
address _collateralWallet
_collateralWallet
is the address of the new walletUser must be contract owner
address collateralWallet
the address of the wallet, to which you would like all swapped ETH and ERC20 collateral to be sent
Status
status
the current activity status of the SEuroOffering contract, the timestamp of when it was activated, and the timestamp of when it was completed.address Seuro
the address of the sEURO ERC20 token contractStatus
bool active
uint256 start
uint256 stop
Last modified 1yr ago