ManageDebtAction
Debt management action type.Values
Borrows additional funds from the pool, updates account’s debt and cumulative interest index
Repays debt components in order: quota interest and fees → base interest and fees → debt principal. Updates all corresponding state variables (base interest index, quota interest and fees, debt). When repaying all debt, ensures that account has no enabled quotas.
CollateralCalcTask
Collateral and debt calculation mode.Values
Returns generic data like account debt and cumulative indexes
Same as GENERIC_PARAMS but includes more detailed debt info, like accrued base/quota interest and fees
Checks whether account is sufficiently collateralized in a lazy fashion, i.e., it stops iterating over collateral tokens once TWV reaches the desired target. Since it may return underestimated TWV, it’s only available for internal use.
Same as DEBT_ONLY but also returns total value and total LT-weighted value of account’s tokens. This mode is used during account liquidation.
Same as DEBT_COLLATERAL but uses safe prices (minimum of main and reserve price feeds) from price oracle
AllowanceAction
Token allowance action for configuration.Values
Forbids a token, preventing it from being added to accounts or having quotas increased
Allows a previously forbidden token