SEuroCalculator
All public interfaces for the SEuroCalculator contract
address _eurUsdCl
address of the Chainlink data feed for the EUR / USD exchangeuint8 _eurUsdDec
decimal value for the given Chainlink data feedUses Chainlink and the BondingCurve contract to calculate how many sEUROs can be minted for the given amount of tokens/coins.
returns:
uint256 seuros
_amount
is amount of given token/coin sent in by the user_token
is data about the token/coin that is used to calculate the rateseuros
is the amount of sEUROs the can be minted in exchange for given amount of token/coinUser must have
OFFERING
role in contractreturns:
uint256 seuros
_amount
is amount of given token/coin sent in by the user_token
is data about the token/coin that is used to calculate the rateseuros
is the amount of sEUROs the can be minted in exchange for given amount of token/coinparameters:
address _newAddress
User must have admin role in contract
address EUR_USD_CL
address of the Chainlink data feed for the EUR / USD exchangeuint8 EUR_USD_DEC
decimals value of the Chainlink data feedLast modified 1yr ago