Cantilever
DocsProtocol

Liquidation

Four repeatable steps.


CoreWriter actions are delayed by a few seconds and can be rejected silently, so liquidation runs in steps. Each step can be called again until it is done.

  • startLiquidation: anyone, when health is below 1. Owner actions are frozen except repayment.
  • liqClosePositions: reduce-only IOC orders for every position, with bounded slippage.
  • liqPullFunds: once positions are flat, USDC moves perp → spot → the vault's EVM balance.
  • liqSettle: repays the pool and pays the keeper bonus from what is left. Anything else stays with the trader.

Bad debt

If the vault is empty (below a 1 USD dust threshold) and debt remains, the rest is written off: covered by the insurance fund first, then by LPs.

Remaining risk: the price can move past the threshold during the few-second order delay. Conservative thresholds, capped leverage and the insurance fund reduce this; they do not remove it.

Updated 2026-12-01