All articles
Risk·March 25, 2026·6 min read

How Hyperliquid's HLP Vault Really Absorbs Liquidation Risk

Delivered a 1,239-word publication-ready blog article for TierZero on Hyperliquid HLP liquidation risk, with a worked bankruptcy-price example, ADL mechanics, the March 2025 JELLY case, and required internal links.

{"excerpt":"How Hyperliquid HLP liquidation risk actually works: backstop transfers, bankruptcy pricing, and auto-deleveraging that socializes losses.","tags":["Hyperliquid","HLP vault","liquidation risk","perp DEX","risk management"],"cover":"signal","content":"Hyperliquid's HLP vault holds close to a billion dollars of pooled deposits, and every one of those dollars is on the hook the moment a large position can't be liquidated cleanly on the order book. That's not a bug buried in fine print — it's the entire design. Understanding exactly how that risk transfer happens, and when it stops being "the vault made money on liquidations" and starts being your counterparty risk, matters if you're running a market-making bot, a hedging strategy, or anything else that touches Hyperliquid's perp markets.\n\n## Liquidation on an order-book perp DEX\n\nHyperliquid isn't a pool-based AMM perp like GMX. It runs a fully on-chain central limit order book, so liquidations aren't handled by a bonding curve — they're handled by forcing a position closed at whatever price the book can actually give it.\n\nEvery position carries a maintenance margin requirement, a fraction of initial margin that scales with the asset's max leverage tier. Once account equity drops below that threshold — checked against the oracle-anchored mark price, not the last trade print — the position gets flagged for liquidation. The engine tries to close it through the normal order book first, same as any other market order. If there's enough resting depth at a reasonable price, it closes there and the trader eats a liquidation fee. Nothing unusual happens.\n\nThe interesting case is when the book is thin: a mid-cap altcoin perp, a position sized well beyond top-of-book depth, or a fast move where makers have already pulled their quotes. That's when the second stage kicks in.\n\n### Backstop liquidation: where HLP steps in\n\nIf the order book can't absorb the full position without slippage wiping out the account's remaining margin, the residual position is transferred — not sold — to the backstop liquidator at the bankruptcy price, the price where account equity hits exactly zero. On Hyperliquid, HLP is the primary backstop liquidity provider for this leg.\n\nIn practice: HLP's book of positions grows by whatever the liquidated trader was holding. If a trader was 20x long ETH and gets liquidated in a falling market, HLP inherits a long ETH position at the bankruptcy price. HLP now carries that directional risk until its own market-making and hedging flow unwinds it — or until it eats a loss because price keeps moving against it before it can flatten.\n\nThat's a meaningfully different model from an insurance-fund design like Binance's or dYdX v3's, where a shared pool absorbs the dollar loss and users never touch the underlying position. HLP takes on directional inventory, not just a claim against a fund. That inventory is exactly what shows up as swings in HLP's daily PnL.\n\n## Worked example\n\nSay a trader opens a 20x long on $10,000 notional at $100, posting $500 margin. Maintenance margin for that tier is roughly 2.5% of notional, so the account gets flagged well before it hits zero equity.\n\n\nnotional = 10,000\ninitial_margin = 500 # 20x leverage\nmaint_margin_pct = 0.025\nliq_price ≈ entry - (initial_margin - notional*maint_margin_pct) / (notional/entry)\n ≈ 100 - (500 - 250) / 100\n ≈ 97.50\nbankruptcy_price ≈ entry - initial_margin / (notional/entry)\n ≈ 100 - 500/100\n ≈ 95.00\n\n\nBetween 97.50 and 95.00 the engine tries to close on the book. If depth only goes down to 96.80 before the price gaps, the remaining size transfers to HLP at the 95.00 bankruptcy price. HLP is now long that residual size, already underwater relative to where the book was last trading — and it's the vault's depositors carrying that gap, not the liquidated trader, who's already at zero, and not an abstract insurance fund somewhere off to the side.\n\n## The socialized-loss layer: auto-deleveraging\n\nHLP isn't infinite. If it accumulates enough one-sided inventory — a large short in a low-liquidity asset during a coordinated pump, say — and can't hedge or exit fast enough, Hyperliquid's auto-deleveraging (ADL) engine becomes the last line of defense before the vault takes an open-ended loss.\n\nADL works by force-closing the most profitable, most highly-levered positions on the opposite side of the vault's exposure, ranked by a combination of unrealized PnL and leverage. If you're short the same asset HLP got stuck long on, and you're sitting on a large unrealized gain with high leverage, you're first in line to get deleveraged — closed out at the oracle price, whether you wanted out or not, before HLP's loss can compound further.\n\nThis is the part integrators tend to underestimate. Your position's fate isn't purely a function of your own margin health. It's also a function of what the vault is holding on its own book and how correlated your winning trade is with the vault's losing one. A perfectly healthy, well-collateralized position can still get force-closed early because someone else's liquidation cascaded into HLP and the system needed to cut exposure fast.\n\nThis is the same underlying problem as oracle design shaping liquidation risk on Solana perps: the mark price feeding the maintenance-margin check is only as good as the feed behind it, and a stale or thin-consensus oracle widens exactly the gap between "should have liquidated cleanly on the book" and "got dumped on HLP instead."\n\n## The illiquid-asset stress case\n\nHyperliquid's most cited real-world test of this mechanism was the March 2025 JELLY incident: a trader opened an outsized short on a thin, low-float perp, then bought spot to push price against their own position, trying to force a liquidation large enough to dump onto HLP faster than the vault could hedge it. HLP's unrealized loss spiked into the millions within minutes before validators intervened, delisted the market, and settled remaining positions at a fixed price. Whatever you think of that intervention, it's a clean illustration of the actual failure mode — not "HLP made a bad trade," but a thin-liquidity asset letting one actor manufacture a liquidation cascade the backstop can't absorb cleanly.\n\n## What this means if you're building on Hyperliquid\n\nFor a market-making bot or a hedging strategy running near HLP-adjacent flow, three things matter in practice:\n\n- Size and leverage on thin markets should assume backstop transfer, not clean order-book fills, past a certain notional — your slippage model needs a second regime for that case.\n- Highly profitable, highly levered positions against a stressed vault are ADL candidates regardless of your own margin ratio, so risk limits should track vault exposure, not just your own account health.\n- Sudden inventory spikes in HLP's open interest on illiquid pairs are an early-warning signal worth polling for, not noise to filter out.\n\nThat last point only works if someone's actually watching it around the clock; a monitoring script that nobody maintains after launch is how these edge cases get discovered live, which is the whole argument for an ongoing support and maintenance arrangement instead of a one-off deploy-and-forget build. If you're building the monitoring and hedging logic itself, that's exactly the kind of system we build into our trading dashboard work. Custody choices compound this risk too — the liquidation math above doesn't matter much if the wallet signing your hedges is a bigger attack surface than the exchange itself, which is why we've written separately about multisig versus MPC wallets for trading bot custody.\n\nWe audit bot and smart-contract logic against exactly these failure modes — get a code review and audit before you find out the hard way where your counterparty risk actually sits.\n"}

Need a bot like this built?

We design, build and run trading bots on Solana, Hyperliquid and Polymarket.

Start a project
#blog-content#hyperliquid#risk#seo