OFFCODE
Sign inCreate account

Auto-Deleveraging Explained: What Happens to Your Perp Position When Liquidation Isn't Enough

Liquidation is supposed to close a losing position before it goes underwater. But when price gaps faster than the engine can sell, someone still has to absorb the loss. That someone is the insurance fund — and when the fund runs dry, auto-deleveraging (ADL) reaches into the winning side of the book. Here is exactly how ADL works, why it exists, and why seeing the queue and the fund on-chain changes the risk.

01/07/2026 · 8 min de leitura · auto-deleveraging · adl · perpetual-futures · liquidation · insurance-fund · risk-management · dex

The part of perpetuals nobody explains until it happens to you

Most traders learn what a liquidation price is on day one. You open a leveraged position, the platform shows you the level where your margin runs out, and you assume that if price hits it, your position closes there and the story ends. For the vast majority of liquidations, that is roughly what happens.

But there is a second mechanism sitting behind the first, and it only shows up in the violent moments: when price moves so fast that the liquidation engine cannot close your position at — or anywhere near — your liquidation price. In those moments the loss does not simply vanish. It has to land on someone's balance sheet. Understanding who absorbs it, and in what order, is the difference between thinking you understand perpetuals risk and actually understanding it.

This is the layer beneath liquidation: the insurance fund and, behind it, auto-deleveraging. If you trade perpetual futures with any meaningful size or leverage, these two mechanisms decide what happens to you in exactly the scenarios you most need to survive.

Why liquidation alone is never enough

A liquidation is an emergency market order. When your margin falls below the maintenance requirement, the engine takes over your position and tries to close it in the live order book. In calm conditions there is plenty of liquidity nearby, the position closes a touch past your liquidation price, and the small remainder is handled quietly.

The problem is that markets do not liquidate one trader at a time in calm conditions. Liquidations cluster. A sharp move pushes thousands of leveraged positions past maintenance margin simultaneously, the engine dumps all of them into the same thinning order book, and each forced sale pushes price further in the same direction — triggering the next wave. This reflexive cascade is why a chart can wick through a price level that 'should' have been support.

When that happens, positions get closed at prices far worse than their liquidation level. The shortfall — the gap between what the position owed and what the engine could actually recover — is a real, unfunded loss. The counterparty on the other side of a perpetual is the pool of all traders, so that shortfall cannot just be written off. It has to be paid by something. That something is the insurance fund.

The insurance fund: the first line of defense

An insurance fund is a reserve that absorbs the shortfalls left behind by underwater liquidations. When a position is closed at a loss beyond its remaining margin, the fund covers the difference so that the winning counterparties still get paid in full. In return, the fund is topped up by the surplus from liquidations that close better than expected — the small buffer between the liquidation price and the actual fill.

In normal market conditions the fund grows, because most liquidations close with a tiny surplus rather than a deficit. The fund acts as a shock absorber that smooths over the routine roughness of forced closes, and traders never notice it working. A healthy, growing insurance fund is a sign that the venue's liquidation engine and margin parameters are well calibrated.

But an insurance fund is finite. A single orderly cascade might cost it a fraction of its balance; a genuine, once-a-cycle dislocation can burn through it. The fund is a buffer, not a guarantee. The critical question for any venue is: what happens when the buffer is exhausted and there is still a shortfall to pay? That is where auto-deleveraging begins.

Auto-deleveraging (ADL): when the system reaches into the winning side

Auto-deleveraging is the mechanism of last resort. When a bankrupt position cannot be fully covered by liquidation or by the insurance fund, the system closes part of an opposing, profitable position to make the system whole. In plain terms: to settle a loss that nobody else can pay, the venue force-closes some of the winners on the other side of that market.

It is not random. Traders on the profitable side are ranked into an ADL queue, ordered primarily by profit and by leverage — the most profitable and most highly leveraged positions sit at the front of the line. When a shortfall must be absorbed, the engine deleverages from the top of that queue, closing those positions at the bankruptcy price of the failed account. If you are near the front of the queue, part of your winning position can be closed without you ever placing an order.

The unsettling thing about ADL is that it can happen to you when you did everything right. You read the move correctly, you are in profit, your margin is healthy — and the system still trims your position because the other side blew up and the fund could not cover it. ADL is not a punishment for a mistake; it is the cost of a closed system having to balance to zero. Every honest perpetuals venue has some version of it, because the alternative is the venue itself becoming insolvent.

Why the order book being a black box makes this worse

On a custodial venue, almost everything in this chain is invisible to you. The true size and health of the insurance fund is a number the company publishes when and how it chooses. The ADL queue — your position in it, how close you are to being deleveraged — is computed inside systems you cannot inspect. Even the liquidations themselves are reported by the same party that benefits from how they are handled.

That opacity is not a small detail. The insurance fund is exactly the kind of pooled reserve that can be quietly drained, mismanaged, or commingled with operating funds, and you would have no independent way to know until it failed in the open. When the mechanism that decides whether your winning position survives a crash is a black box run by the counterparty, you are back to trusting a statement instead of verifying a fact.

This is the same structural problem that sits underneath custodial exchange risk in general: a private ledger you cannot audit. ADL just makes it concrete and personal, because it is the moment the black box reaches directly into your position.

What on-chain settlement changes about ADL

Auto-deleveraging does not disappear on a decentralized venue — it is a structural necessity of any perpetual market, not a flaw of custody. What changes is whether you can see it. On a global, non-custodial DEX where positions and settlement live on-chain, the mechanics stop being a private report and become public state: liquidations settle on-chain, the insurance fund is an inspectable balance rather than a marketing figure, and the rules that order the ADL queue are transparent rather than discretionary.

That shift matters because it turns 'trust us, the fund is healthy' into 'check the fund yourself.' OFFCODE operates as a global, non-custodial DEX with USDC-margined perpetuals up to 40x and real, on-chain Proof-of-Reserves. The same property that lets you verify reserves is what lets the backstop behind liquidation be something you can inspect instead of something you have to take on faith. You still carry market risk, and ADL can still touch you in a true dislocation — but you are not also carrying the hidden risk of not knowing whether the safety net exists.

The practical takeaway for any leveraged trader: a liquidation price is only the first layer of your real risk. Behind it is an insurance fund, and behind that is an ADL queue that can close your winning position to keep the system solvent. Before you size up, ask not just where your liquidation level is, but whether you can actually see the fund and the rules that decide what happens after it. On a black box you are trusting; on-chain you are verifying.

← Todos os artigos