StabilityPool
function provideToSP(uint256 _amount) external
Deposits debt tokens into the pool, accrues rewards, and updates snapshots.
Amount of debt tokens to deposit.
function withdrawFromSP(uint256 _amount) external
Withdraws debt tokens from the pool, claims rewards, and updates snapshots.
Amount of debt tokens to withdraw.
function claimCollateralGains(
address recipient,
uint256[] calldata collateralIndexes
) public
Claims collateral gains for specified tokens and sends them to the recipient.
Address to receive gains.
Array of collateral indices to claim.
Returns the pending Bit rewards for a depositor.
Address to receive rewards.
Returns:
Amount of rewards claimed.
Returns the total debt tokens deposited in the pool.
Returns:
Total debt tokens deposited.
Returns the collateral gains earned by a depositor.
Returns:
Array of collateral gains per token.
Returns the pending Bit rewards for a depositor.
Returns:
Calculates a depositor’s compounded debt deposit after rewards.
Returns:
Compounded debt deposit amount.
Last updated