Last updated 1 year ago
Was this helpful?
cache + updateState
get current debt
validateRepay
get paybackAmount
burn debt tokens
updateInterestRates
setBorrowing
updateIsolatedDebtIfIsolated
handle repayment
queries both the stable debt and variable debt token balance for the target user
For a specific asset user can only borrow in either stable or variable mode; cannot have concurrent debt in both modes simultaneously
Therefore, one of the values returned will be 0
0
balanceOf returns the debt balance accounting for interest up till the current block.timestamp
balanceOf