BondingCurve
All public interfaces for the BondingCurve contract
uint256 _initialPrice
starting price for the bonding curveuint256 _maxSupply
the IBCO supply at which sEURO should reach full priceuint256 _bucketSize
the size of each price bucket, used to make calculations more efficientCalculates exactly how much sEUROs should be minted for the given number of euros.
parameters:
uint256 _euroAmount
returns:
uint256 seuros
_euroAmount
is the number of euros to convert into sEUROSseuros
is the number of sEUROs that should be minted for given eurosUser must have
CALCULATOR
role in contractEstimates how many sEUROs roughly should be minted in exchange for the given amount of euros
parameters:
uint256 _euroAmount
returns:
uint256 seuros
_euroAmount
is the number of euros to estimate the conversion into sEUROSseuros
is the estimated number of sEUROs to be minted for given eurosUpdates the IBCO total supply, and by extension the current price bucket
parameters:
uint256 _minted
_minted
is the number of euros to estimate the conversion into sEUROSUser must have
UPDATER
role in contractuint256 ibcoTotalSupply
the amount of tokens that have been supplied via the BondingCurveuint256 maxSupply
the amount of tokens that should be supplied by the BondingCurve before reaching final priceuint256 FINAL_PRICE
the price which the IBCO should reach when at max supplyBucket
uint32 index
index of the price bucketuint256 price
price determined by the bucket
Last modified 1yr ago