Skip to main content
Source: programs/vanna_lending/src/math/.

Scales

Utilization and kink rate

Accrual

Reject now < last_update (TimestampRegression).

Lender shares

Debt shares

Borrow shares round up. Lender shares and redeem assets round down.

USD and health

Collateral value floors. Debt value ceils. value_to_token_amount is the inverse used by liquidation seize.

Liquidation seize

Require seize_tok ≥ min_collateral_out.