description |
---|
description |
description
function config(address asset) external view returns (AssetConfig memory);
description
function allowanceInterval() external view returns (uint256);
description
function bondPriceTimestampDelay() external view returns (uint256);
description
function intervalStartAt() external view returns (uint256);
description
function isEnabled(address asset) external view returns (bool);
description
function enabled() external view returns (address[] memory);
description
function estimateTokenAmount(IKEI.Snapshot memory k, address asset, uint256 assetAmount) external view returns (uint256);
description
function currentBondInterval() external view returns (uint256);
description
function currentIntervalTokensBonded(address asset) external view returns (uint256);
description
function remainingBondAllowance(address asset) external view returns (uint256);
description
function bondPrice(
IKEI.Snapshot memory k,
uint256 floorPrice,
address asset
) external view returns (uint256);
description
function approve() external;
description
function enable(address asset) external;
description
function disable(address asset) external;
description
function updateConfig(address asset, AssetConfig memory config) external;
description
function bond(
IKEI.Snapshot memory k,
address asset,
uint256 assetAmount,
uint256 stakingDuration
) external returns (BondDetails memory);
description
event BondCreated(BondDetails details, address indexed sender);
description
event AssetConfigUpdated(AssetConfig prevConfig, AssetConfig newConfig, address indexed sender);
description
struct AssetConfig {
uint256 allowance;
uint256 lockDuration;
uint256 discountPercent;
uint256 baseIncrementPercent;
}
description
struct BondDetails {
address asset;
uint256 assetAmount;
uint256 assetReceived;
uint256 assetReceivedBASE;
uint256 tokensAllocated;
uint256 bondPrice;
uint256 stakeId;
}