IBC Factory
The IBC Factory contract acts as the deployer for new Inverse Bonding Curve contracts. Users can make a request to this contract to make new deployments of IBCs.
The IBC Factory maintains the full list of all deployed IBCs (curves
), made queryable by users.
Events
CurveCreated
CurveCreated
Emitted at IBC contract creation for the specified reserve asset.
Parameter | Type | Description |
---|---|---|
curveContract | address | Contract address of IBC implementation |
tokenContract | address | Contract address of ibAsset token contract |
proxyContract | address | Contract address of IBC proxy contract |
initialReserve | uint256 | Initial reserve amount of curve |
State-Changing Functions
CreateCurve
CreateCurve
Deploys a new IBC implementation, its proxy contract, and the relevant ibAsset token contract for the specified reserve asset.
Parameter | Type | Description |
---|---|---|
initialReserves | uint256 | Amount of initial reserves to supply to curve |
reserveTokenAddress | address | Contract address of the reserve asset token contract |
recipient | address | Address to receive initial LP position |
Read-Only Functions
getCurve
getCurve
Gets the contract address of the specified reserve asset's IBC implementation.
Parameter | Type | Description |
---|---|---|
reserveToken | address | Contract address of reserve asset |
allCurvesLength
allCurvesLength
Gets the total number of IBC curves created through the IBC factory so far.
Parameter | Type | Description |
---|---|---|
Last updated