IBC Admin
The IBC Admin contract is where protocol configuration changes are made. Fee configuration updates as well as contract upgrades and pauses are managed through this contract.
Events
FeeConfigChanged
FeeConfigChangedEmitted when fee configurations have been changed by the contract owner.
event FeeConfigChanged(
ActionType actionType,
uint256 lpFee,
uint256 stakingFee,
uint256 protocolFee
); actionType
ActionType
Type of user action
lpFee
uint256
Rate of fees given to LPs
stakingFee
uint256
Rate of fees given to ibAsset stakers
protocolFee
uint256
Rate of fees given to protocol creator
ActionType
enum ActionType {
BUY_TOKEN,
SELL_TOKEN,
ADD_LIQUIDITY,
REMOVE_LIQUIDITY
}BUY_TOKEN
Action is the minting of ibAssets
SELL_TOKEN
Action is the burning of ibAssets
ADD_LIQUIDITY
Action is the adding of liquidity to the IBC
REMOVE_LIQUIDITY
Action is the removing of liquidity from the IBC
FeeOwnerChanged
FeeOwnerChangedEmitted when the protocol creator fee receival address is changed.
feeOwner
address
New address receiving protocol creator fees
RouterChanged
RouterChangedEmitted when the IBC Router contract is changed.
router
address
Address of new IBC Router contract
CurveImplementationChanged
CurveImplementationChangedEmitted when the IBC contract implementation is changed.
implementation
address
Address of new IBC contract implementation
Read-Only Functions
feeConfig
feeConfigGets the fee configurations of inverse bonding curve interactions for the specified action type.
lpFee
uint256
Fee rate given to LPs for user action type
stakingFee
uint256
Fee rate given to ibAsset stakers for user action type
protocolFee
uint256
Fee rate given to protocol creator for user action type
factoryAddress
factoryAddressGets the contract address of the IBC Factory contract.
address
Contract address of the IBC Factory contract
feeOwner
feeOwnerGets the address receiving protocol creator fees.
address
Address receiving protocol creator fees
weth
wethGets the contract address of the WETH token contract.
address
Contract address of the WETH token contract
router
routerGets the contract address of the IBC Router contract.
address
Contract address of the IBC Router contract
curveImplementation
curveImplementationGets the contract address of the IBC implementation contract.
address
Address of the IBC implementation
Last updated