# Hyperliquid and the Anatomy of Perpetual-Vault Risk

> On-chain perpetual exchanges have made the vault the residual counterparty. We dissect how that design transmits loss, and where it breaks.

- Source: https://www.steadyrain.xyz/en/articles/hyperliquid-vault-risk-anatomy/
- Publisher: Steady Rain
- Author: 0xYatha
- Published: 2026-05-11T07:28:51.955Z
- Categories: History, DeFi
- Language: en

## Introduction

Perpetual futures are the most-traded instrument in crypto, and for most of their history they lived inside centralized exchanges with opaque risk engines and well-capitalized insurance funds. The recent migration of perp volume on-chain — led by Hyperliquid and a cohort of order-book DEXes — has been treated mostly as a UX and custody story. Self-custodied collateral, on-chain order books, transparent funding rates. The risk story is less flattering.

Beneath the user interface of an on-chain perpetual exchange sits a community-funded liquidity vault. On Hyperliquid this is the HLP vault; on GMX it was the GLP pool; dYdX, Drift, and others run variants on the same idea. The vault makes markets, absorbs liquidations, and — crucially — sits as the residual counterparty when a position blows past its margin faster than the book can clear it. When markets behave, depositors earn fees and funding. When a single position is large enough to dislocate the market it trades against, the vault eats the difference.

The JELLY-style episode on Hyperliquid in March 2025, in which a thinly-traded listed token was manipulated into an oversized short against the HLP vault, made the structural question concrete: what exactly is the loss-absorption stack of an on-chain perp DEX, and how does it compare with the clearinghouse model that CeFi venues spent a decade refining? This note works through the mechanics — auto-deleveraging, socialized loss, vault-as-market-maker, insurance funds — and asks where the on-chain model is genuinely robust and where it is structurally fragile.

## The vault as residual counterparty

*[Figure: img1]*

A perpetual exchange is not a market in the equity sense. It is a clearing system that pairs longs against shorts on a synthetic instrument and uses funding payments to keep the perp price tethered to a spot reference. For the system to remain solvent, every losing position must close — by liquidation if necessary — before its losses exceed posted margin. The hard part is what happens when that fails.

On a CeFi venue, the loss-absorption stack runs roughly: trader margin, then the exchange's insurance fund, then auto-deleveraging (ADL) of profitable counterparties, then, in extremis, a socialized clawback. The insurance fund is the shock absorber: it is sized to absorb most tail liquidations without touching profitable traders, and it is replenished from liquidation penalties charged on every forced close.

On Hyperliquid and similar venues, the architecture is similar in spirit but the funding source is different. The HLP vault — Hyperliquid's protocol-owned liquidity pool — performs three functions simultaneously. It runs market-making strategies on listed perpetuals, takes the opposite side of liquidations through the liquidator mechanism, and acts as the backstop when ADL is invoked. Depositors are paid in the system's revenue share and in the PnL of these strategies.

This combination is what makes the on-chain design distinctive. The vault is not a passive insurance fund sitting on stablecoins. It is an active market participant whose book is, by design, correlated with the very stress events that an insurance fund is supposed to absorb. When a sudden move forces a large liquidation, the vault both inherits the position and discovers that its market-making inventory was already leaning the wrong way.

### Why the vault model exists at all

The vault exists because an order-book DEX cannot easily bootstrap professional market-maker depth on long-tail perpetuals. CeFi venues rely on dedicated MM firms with tight integrations, latency advantages, and cross-venue hedging desks. An on-chain venue, especially one that lists assets aggressively, cannot assume that depth will arrive for every market on day one. The vault fills the void: it provides quotes, narrows spreads, and earns the carry. Depositors are, in effect, retail-funding the market-maker function that elsewhere is performed by specialist firms.

This is an honest tradeoff in normal conditions. Where it strains is in the tail.

## How liquidations are supposed to work

*[Figure: img2]*

A clean liquidation looks like this. A trader's margin falls below maintenance. The exchange's risk engine cancels their open orders, takes over the position, and posts it as a market order against the book. The book absorbs it. The liquidation penalty — a small percentage of notional — flows to the insurance fund. The exchange records a profit-neutral close.

This works when two conditions hold. First, the book is deep enough at the liquidation price that the takeover order fills without significant slippage. Second, the mark price the risk engine uses to trigger liquidation tracks an external reference that cannot be cheaply manipulated.

Both conditions are weaker on-chain than off, and weaker still for long-tail listings.

### Thin books and the slippage problem

A perpetual on a newly-listed, low-cap token may have a few hundred thousand dollars of resting depth within 1% of mid. A position of even moderate size, when forced to market-out, will move the price by multiples of the maintenance margin. The shortfall — the gap between liquidation trigger price and actual fill price — has to be absorbed somewhere. On CeFi venues, this is the insurance fund's primary purpose. On Hyperliquid, the HLP vault is the bag-holder by construction: as the dominant resting liquidity on many books, it is what the liquidation actually fills against, and the slippage is its loss.

### Oracle and mark-price design

The mark price used to trigger liquidations is a second pressure point. If the mark is derived from the exchange's own order book, it is manipulable: an attacker can push the book to trigger liquidations of their own short, or to avoid liquidation of an attacking position. If it is derived from external spot venues, those venues themselves may be thin enough to be moved by the same actor. Hyperliquid and peers have iterated on oracle composition — weighted external references, sanity bands, time-averaging — but the core problem does not disappear: for a long-tail asset, every price reference is thin, and the cost of moving all of them simultaneously is bounded.

The JELLY-style episode demonstrated this concretely. A coordinated open of a very large position in a perpetual on an asset with shallow spot liquidity, combined with spot-market manipulation to move the oracle, forced the exchange into a position where unwinding the trade cleanly was not possible at any price the book offered. The vault, holding the other side, faced a mark-to-market loss that grew with the manipulator's ability to push the reference further.

## ADL and the socialization of loss

*[Figure: img3]*

When liquidation cannot clear cleanly and the insurance buffer is inadequate, exchanges fall back on auto-deleveraging. ADL forcibly closes the most-profitable, highest-leverage counterparties to the bankrupt position at the bankruptcy price. It is, in effect, an involuntary settlement: profitable traders are handed a closed position and the system's books are balanced.

ADL is universally disliked. It penalizes the traders who were right. It is opaque — most users do not check their ADL queue ranking until they have been deleveraged. And it creates a perverse incentive: if your winning trade is large enough, the exchange will close it for you at a worse price than the market would.

On-chain perp DEXes have inherited ADL with few modifications. The mechanism is necessary because the alternative — letting the system go bankrupt — is worse. But the on-chain context changes its character.

### The vault as ADL counterparty

On a CeFi venue, ADL is between traders. The exchange acts as a matching engine. On Hyperliquid, the vault is itself a major position-holder, often a large counterparty to the very position being unwound. ADL therefore performs a more complicated function: it not only socializes residual loss across profitable traders, it also unwinds the vault's exposure into the market it was making.

The result is that depositors in the vault face a layered loss. The vault first eats the slippage from the failed liquidation. Then, if ADL is invoked, the vault's exposure is partially closed at the bankruptcy price — which by definition is worse than mark. Then, if even that is insufficient, the residual loss is reflected in the vault's net asset value, and depositors take a permanent haircut.

This is not socialization across all users of the exchange. It is socialization concentrated on the vault depositors. Traders who never deposited into HLP do not contribute. The vault is the de facto insurance fund, but it is funded by a self-selected subset of the user base who joined to earn yield, not to underwrite tail risk.

### The information asymmetry problem

A CeFi exchange's insurance fund is, in theory, accountable to the exchange's risk team. The fund's size is public, its drawdowns are reported, and its replenishment policy is known. A retail depositor in an on-chain vault is in a different position. They see an aggregate APR, a NAV, and a position summary. They do not, in most cases, see the individual market exposures broken down by listing age, oracle quality, and book depth. They do not know which of the dozens of listed perpetuals could, in a tail scenario, hand the vault a position larger than the vault wants to hold.

The depositor is, in practice, writing tail-risk insurance on the long-tail listings policy of the exchange. The premium is the yield. The strike is determined by the exchange's risk parameters. And the depositor has limited input into either side of that contract.

## The CeFi clearinghouse comparison

*[Figure: img4]*

It is worth pausing on what a mature clearinghouse model actually does, because the on-chain debate often misrepresents it.

A CeFi perpetual exchange — Binance Futures, Bybit, OKX, the now-departed FTX — operates a multi-layered risk system that is conceptually closer to a futures clearinghouse than to an order book. The layers, in roughly the order they absorb loss:

- **Initial and maintenance margin**, set per-asset, with tiered requirements that scale with position size.
- **Liquidation penalty**, charged on forced closes, that flows directly into the insurance fund.
- **Insurance fund**, capitalized over years from penalty income, sized to absorb routine tail events. Major venues run insurance funds in the hundreds of millions of dollars.
- **ADL queue**, ordered by profit and leverage, invoked only when the insurance fund is depleted for a given asset.
- **Socialized clawback**, an option-of-last-resort that has been exercised rarely and is reputationally catastrophic when it is.

What makes this work, when it works, is the combination of conservative listing policy on high-leverage assets, a well-capitalized insurance fund, and a risk team with discretion to halt trading, widen margin requirements, or delist instruments in real time. None of these are technical features. They are operational decisions made by humans with accountability.

### What the on-chain model lacks — and what it gains

The on-chain model has clear advantages. Collateral is self-custodied. The order book is verifiable. Funding rates and oracle inputs are observable. The vault's positions are public; depositors can in principle audit what they are exposed to. None of this is true of a CeFi venue, where the insurance fund balance is a number the exchange publishes and users either believe or do not.

What it lacks is the operational discretion. An on-chain exchange that automates everything also automates its risk parameters. Raising margin requirements mid-event, halting a single market, or delisting a manipulated instrument requires governance — and governance is, by design, slower and more public than a risk team's intraday decision. In the JELLY episode, Hyperliquid's response involved delisting the contested instrument and adjusting parameters. That response was both effective and controversial precisely because it required the exchange to act non-automatically, which sits uncomfortably with the credibly-neutral framing of an on-chain protocol.

There is no clean answer here. A perpetual exchange that cannot pause or intervene is a perpetual exchange that gets drained by the first sufficiently-funded attacker. A perpetual exchange that can pause and intervene is one whose decentralization story has an asterisk.

### Capitalization comparison

A useful quantitative frame: a CeFi major's insurance fund, in mature periods, is sized in the high hundreds of millions of dollars and is dedicated capital not earning yield on directional positions. An on-chain vault of comparable absolute size is, by design, not idle — it is deployed as market-making inventory, and its mark-to-market changes minute-to-minute with the markets it makes. The vault's loss-absorption capacity is therefore both smaller in stress (because part of it is already in losing positions) and harder to size in advance.

If a CeFi insurance fund is a reservoir, the on-chain vault is a working capital account. They are not the same thing, even if the headline number is similar.

## Listing policy and the attacker's calculus

*[Figure: img5]*

The structural weak point of the on-chain perp vault is not the vault itself; it is the listing policy that determines what the vault is forced to make markets in.

A perpetual exchange that lists only BTC, ETH, and a handful of large-caps faces a manageable problem. Books are deep, oracles are robust, and the slippage on any single liquidation is small relative to vault capitalization. The same exchange, listing perpetuals on dozens of long-tail tokens, has greatly expanded its attack surface. Each new listing is an option granted to the rest of the world: an option to construct a manipulation trade where the cost of moving the underlying is less than the payoff from the perp position.

The attacker's calculus is straightforward. Identify a listed perpetual where (a) the spot float of the underlying is small, (b) the perp open-interest cap is large relative to that float, and (c) the oracle composition can be moved by trades within the attacker's capital. Open a large position in the perp. Manipulate the spot. Either force the vault into an inherited position at a bad price, or extract the position's mark-to-market profit before the exchange can react.

This is not a theoretical playbook. It has been the recipe for most of the high-profile on-chain perp losses of the past two years, on Hyperliquid and elsewhere. The defenses are familiar: open-interest caps, listing diligence, oracle composition, dynamic margin requirements. The problem is that each defense has a competitive cost. Lower OI caps mean less yield for the vault. Stricter listing means slower growth. More conservative oracles mean more false-positive liquidations in volatile markets.

The exchange is therefore optimizing a tradeoff between vault safety and the user experience that drives volume. As long as volume rewards permissive listing, the equilibrium drifts toward more listings and thinner buffers, until the next tail event resets the parameters.

### The role of the vault depositor

In this equilibrium, the vault depositor is the marginal participant whose risk tolerance sets the price. If depositors flee after a tail loss, the vault shrinks, OI caps must come down, and the listing-driven growth strategy slows. If depositors stay — attracted by post-loss yields that have risen to compensate for the demonstrated risk — the exchange can continue.

The Hyperliquid response to the JELLY-style episode, including the delisting and the absorption of the loss within the protocol's broader balance, was in part a depositor-retention move. Forcing the vault to take a clean haircut would have communicated the risk honestly but might have accelerated outflows. Socializing the loss across the protocol's other revenue lines preserved the vault's NAV at the cost of communicating, perhaps too softly, that the vault is in fact backstopped — which it is not, in any contractually-enforceable sense, for the next event.

This is the on-chain analogue of a CeFi venue tapping its corporate balance sheet to top up an insurance fund. It works once. It works twice. It is not a sustainable risk model.

## What this means going forward

The on-chain perpetual exchange is a genuine innovation, and the vault model is a reasonable answer to the bootstrapping problem of providing depth on a long tail of listings. It is not, however, a substitute for the clearinghouse function, and treating it as one is the error to watch.

Several things follow if we take the structural analysis seriously.

First, vault depositors should be priced as sellers of out-of-the-money insurance on the exchange's listing policy, not as passive LPs. The relevant yield comparison is not against stablecoin lending rates but against the implied premium on writing tail-risk options on a basket of long-tail tokens. By that benchmark, current vault yields may be fair, generous, or stingy depending on the specific exchange and its listing aggressiveness — but the comparison is the right one, and it is not how the products are currently marketed.

Second, the on-chain perp segment will likely bifurcate. Some venues will optimize for blue-chip depth and tight risk parameters, with smaller vaults and lower yields, occupying a niche close to a CeFi venue's risk profile minus the custody. Others will continue with permissive listing and higher yields, accepting that vault drawdowns are part of the business model and pricing them accordingly. The middle position — broad listings with implicit safety — is the one that fails, because it relies on the exchange's willingness to absorb losses from somewhere other than the vault, and that willingness has a finite balance.

Third, the operational-discretion question will not be resolved by code. Every on-chain exchange that has faced a real tail event has intervened off-protocol: delisting, parameter changes, ad-hoc backstops. The honest framing is that these are clearinghouses with on-chain settlement and off-chain risk management, and the off-chain risk management is becoming the differentiator. Users who care about credible neutrality should look not at the marketing but at the track record of intervention and the governance pathway that authorizes it.

Finally, the open question we would watch is whether any of the major on-chain perp venues moves to separate the market-making function from the insurance function. A protocol-owned vault that exclusively makes markets, paired with a separately-capitalized insurance fund that exclusively absorbs tail losses, would more closely resemble the CeFi clearinghouse architecture and would make the depositor's risk legible. It would also reduce yields, which is why no major venue has fully committed to the split. Whether competitive pressure or another tail event forces that decomposition is the structural question for the next cycle of on-chain perpetual design.
