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

Emitted at IBC contract creation for the specified reserve asset.

event CurveCreated(
    address curveContract, 
    address tokenContract, 
    address proxyContract, 
    uint256 initialReserve
);
ParameterTypeDescription

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

Deploys a new IBC implementation, its proxy contract, and the relevant ibAsset token contract for the specified reserve asset.

function createCurve(
    uint256 initialReserves, 
    address reserveTokenAddress, 
    address recipient
) external payable
ParameterTypeDescription

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

Gets the contract address of the specified reserve asset's IBC implementation.

function getCurve(address reserveToken) public view returns (address)
ParameterTypeDescription

reserveToken

address

Contract address of reserve asset

allCurvesLength

Gets the total number of IBC curves created through the IBC factory so far.

function allCurvesLength() public view returns (uint256)
ParameterTypeDescription

Last updated