Minting / Burning
Just like bonding curves, users may buy (mint) / sell (burn) ibAsset to / from an initialized IBC. The IBC acts as the counterparty for such trades, utilizing its liquidity reserve as market liquidity.
Just like regular bonding curves, the amount of reserve assets required to mint a certain amount of ibAssets is equivalent to the area under the IBC's price curve (integral of the curve). While values for minting and burning can be calculated with integration, it can also be derived from the curve's invariant with ease:
Minting
New ibAssets can be minted (bought) by supplying reserve assets to the relevant IBC, from which the IBC of the reserve asset calculates the amount to be minted. If the amount of reserve assets supplied is and the amount being minted is , the below must be satisfied.
Thereby yielding as:
The spot price post-mint is the updated to become the below:
Burning
Users may also burn minted ibAssets via the relevant IBC to receive reserve assets. The amount of ibAssets burnt () and the amount of reserve assets given () has the relationship of:
From which comes out as:
The post-burn price then becomes:
Last updated