# BondingCurve

All public interfaces for the BondingCurve contract

`uint256 _initialPrice`

starting price for the bonding curve`uint256 _maxSupply`

the IBCO supply at which sEURO should reach full price`uint256 _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 sEUROS`seuros`

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 sEUROS`seuros`

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 contract**uint256 ibcoTotalSupply**

**the amount of tokens that have been supplied via the BondingCurve**

**uint256 maxSupply**

**the amount of tokens that should be supplied by the**

**BondingCurve**before reaching final price

**uint256 FINAL_PRICE**

**the price which the IBCO should reach when at max supply**

`Bucket`

`uint32 index`

index of the price bucket`uint256 price`

price determined by the bucket

Last modified 1yr ago