Derivatives Set the Price

Liquidation Engines, Insurance Funds and ADL

Your real risk is not your liquidation price — it is the venue's mark-price method, its backstop depth, and whether it can take your winning position away.

On a leveraged venue you have two counterparties: the market, and the risk engine. The engine decides when you are closed, at what price, who absorbs the shortfall, and whether a profitable position can be confiscated to cover someone else's loss. These are configuration choices that differ sharply between venues, and they are published. Almost nobody reads them.

Mark price is not last price

Liquidations trigger on mark price, which is derived from an index of multiple external spot venues, often with a smoothing or basis adjustment. The reason is defensive: if liquidation ran on the venue's own last traded price, a single large sell into a thin book would print a wick and liquidate thousands of accounts at a price that existed nowhere else. Mark price makes that attack expensive.

The cost of the fix is that mark can diverge from what you see on the chart. In a fast move your position can be liquidated while the venue's own last price never reached your stated liquidation level — and conversely, a terrifying local wick can leave you untouched. Know which external venues feed the index and how outliers are handled, because that index is your actual trigger.

The gap between liquidation and bankruptcy

  1. Maintenance breachequity falls below the required margin tier
  2. Liquidation priceengine takes over the position
  3. Bankruptcy pricewhere equity reaches exactly zero
  4. Shortfallfilled worse than bankruptcy — insurance fund, then ADL

A well-run engine liquidates before your equity is gone, and liquidates in parts: a partial close that restores margin is better for everyone than a full market dump. If it closes you better than your bankruptcy price, the surplus goes to the insurance fund. If it closes you worse, the fund pays the difference. The insurance fund is therefore not a charitable reserve — it is accumulated profit from orderly liquidations, held against disorderly ones.

Auto-deleveraging: when the backstop runs out

If the fund cannot cover the shortfall, the venue must still balance the book, and it does so by force-closing traders on the winning side. ADL ranks candidates by profitability and leverage, taking the most profitable and most levered first. If you are highly levered and deeply correct, you are at the top of the queue. Your position is closed at the bankruptcy price of the failed account, not at the price you would have chosen, in the exact market conditions where your position was finally working.

Check the ADL indicator on your account, check published insurance fund balance history, and treat a fund that has repeatedly dropped sharply as information about the engine's calibration. On the other side, a fund that only ever grows is being fed by liquidating you slightly early. Neither extreme is free.

Oracle-priced venues and thin markets

Some on-chain perp venues price and liquidate against an oracle, with a protocol-owned vault acting as counterparty and backstop. This is cleaner in normal conditions and introduces a specific attack: if an asset's underlying spot liquidity is thin enough to move, an attacker can take a large perp position and then push the reference market, forcing the protocol's own backstop into the losing side. The JELLY episode on Hyperliquid in March 2025 is the clearest public example — an attacker pushed a thin spot market until the protocol's vault inherited the losing side of a large short and was carrying a severe unrealised loss. That loss was never realised: validators voted to delist the perp and force-settle it at a price near the attacker's entry, and the vault ended roughly flat. The forced settlement is the real lesson. When the backstop is the protocol itself, the venue has both the means and the motive to change the settlement rules mid-incident, so discretionary intervention is part of what you are underwriting when you trade there.

The general lesson applies to every venue: a perp listed on an asset whose spot market is shallow relative to the perp's open interest is a structurally manipulable instrument, regardless of how the engine is built. Open interest versus genuine spot depth is the ratio to check before you trade a small listing.

Margin mode and tier skew

  • Cross margin uses your whole balance as collateral: later liquidation, but one bad position can take the account. Isolated caps the loss at that position's margin and liquidates far sooner.
  • Maintenance margin is tiered by position size. A large position sits in a worse tier, so scaling up silently moves your liquidation price against you even at constant notional leverage.
  • Unrealised profit on one leg may or may not support margin on another, and the rule differs by venue. Assuming it does is a common way to be liquidated while net flat.
  • Stablecoin collateral is not risk-free collateral. If your margin asset wobbles during the same stress event, margin and mark move together against you.
Read the venue's risk documentation before sizing: index composition, margin tiers, partial liquidation policy, insurance fund history, ADL ranking. The engine's configuration is a term of your trade, and it is the term most likely to decide the outcome of your worst day.

Key takeaways

1Liquidations trigger on an external index-based mark price, which can diverge from the chart you are watching.
2Liquidation price precedes bankruptcy price; the insurance fund is accumulated liquidation surplus, not a guarantee.
3ADL confiscates the most profitable and most levered winning positions when the fund is exhausted.
4Oracle-priced perps on thin spot markets are manipulable; compare open interest to real spot depth before trading a small listing.
5Tiered maintenance margin means scaling a position worsens its liquidation price even at constant leverage.

Educational content only, not financial advice. Trading and investing carry real risk of loss, including your entire capital. Do your own research and consult a licensed professional before making financial decisions.

This is one lesson of 541.

The whole Foundation is free — 16 subjects, beginner to advanced. Sign in to track what you have read, take the end-of-module quizzes, and use the terminal.