RiskManager
INIT risk manager contract.
View Functions
CORE
InitCore contract address.
getModeDebtShares
Get current mode debt shares.
getModeDebtAmtStored
Get mode debt amount without interest accrual. For interest accrual, use getModeDebtAmtCurrent.
getModeDebtCeilingAmt
Get mode debt ceiling amount. Positions in a mode cannot have a total borrow more than the debt ceiling amount.
External Functions
getModeDebtAmtCurrent
Accrue interest and get mode debt amount.
Parameters:
Name
Type
Description
_mode
uint16
mode to get debt amount
_pool
address
lending pool to get debt amount
Returns:
Name
Type
Description
debtAmount
uint256
underlying token debt amount of mode after accrue interest
Last updated