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. CLOSE_FACTOR_BPS is a compiled constant, not a governed Reserve/ProtocolConfig field. The code comment above it explicitly calls the 50% figure illustrative — “requiring simulation and audit before production, not a frozen protocol parameter” — so treat it as a V1 default, not a permanent guarantee.