HLP Vault Deep Dive
The Hyperliquidity Provider (HLP) vault is the core liquidity mechanism powering Hyperliquid's perpetual markets. When you deposit USDC into HLP, your capital becomes the counterparty to every trader on the platform - earning spread income when traders lose, and absorbing losses when traders collectively win. This page explains exactly how that works, how risk is managed, and how to simulate your expected returns.
How HLP Powers the vAMM
HLP sits between depositor USDC and the virtual Automated Market Maker (vAMM). It does not hold trader funds - it provides indicative pricing and absorbs net PnL from the trading pool. Explore the flow below.
Four Vault Types
Each vault type has different risk/reward profiles and capital deployment strategies. HLP is the primary vault; the others serve specific purposes.
Deposit Simulator
Enter your deposit amount and see how your pro-rata share of HLP evolves, what daily yield looks like, and how the 4-day withdrawal lock affects access to funds.
VaR & Max Exposure Mechanics
The HLP risk system constantly monitors Value at Risk (VaR) - the estimated maximum loss across all open positions at 99% confidence over a 24-hour window. When VaR approaches the limit, HLP reduces new inventory automatically.
Liquidation Queue
When a trader's position hits the liquidation threshold (margin ratio < maintenance margin), the liquidation queue activates. Registered liquidators compete to execute the liquidation, earning a bonus from the position's collateral.
HLP Historical APY
HLP APY is driven by trading volume (more volume = more spread earned), market volatility (wider spreads during vol), and net trader PnL (when traders lose, vault earns more). Select a market regime to project returns.
How HLP works in 90 seconds
HLP is a USDC vault where depositors receive shares proportional to their contribution to the pool. The vault's strategy manager uses that USDC to post limit orders on both sides of Hyperliquid's perpetual markets. When a trader submits a market order that crosses the spread - buying at the ask or selling at the bid - HLP's resting order is filled and earns the bid-ask spread. This is the primary revenue stream.
The second PnL component is net trader performance. If Hyperliquid traders collectively lose more than they earn in a given period, that net loss is added to the vault pool - HLP depositors profit. If traders collectively profit more than the spread earned, HLP depositors absorb the difference as a loss. This is the fundamental economic dynamic of being the liquidity provider: you are the structured counterparty to every trade.
The 4-day withdrawal lock means that even after you request withdrawal, you cannot claim for 4 days. This gives the vault time to adjust its posted orders without being forced to liquidate positions at unfavorable prices to meet a sudden redemption wave.
Key concepts
- Vault share / NAV per share
- When you deposit $10,000 into HLP and the current NAV is $1.00, you receive 10,000 shares. If the vault earns 5% over the next month, NAV rises to $1.05 and your shares are worth $10,500. Shares are fully fungible - you can transfer them, and the recipient redeems them at the same NAV.
- vAMM (Virtual Automated Market Maker)
- Hyperliquid uses a virtual AMM architecture where HLP provides the capital backing the vAMM's pricing. The vAMM does not hold trader funds - it settles PnL against the trading pool. HLP absorbs net PnL, meaning if traders as a group are net profitable, HLP loses. The spread HLP earns on each fill partially offsets this.
- Value at Risk (VaR)
- VaR is a statistical measure of the worst-case loss across HLP's open positions over a given time horizon at a given confidence level. A 99%-VaR of $4.2M over 24 hours means there is a 99% probability that HLP's positions will lose less than $4.2M in any 24-hour period. The remaining 1% is a tail risk - extreme moves that exceed VaR are absorbed directly by the vault.
- Max exposure limit
- A hard cap on the total size of any single position HLP can hold. For BTC-PERP, this might be 1,200 BTC equivalent. This prevents a single large directional bet from dominating the vault's risk profile. Reaching the max exposure limit triggers automatic risk reduction even if VaR has not been breached.
- Liquidation queue priority
- When a position enters the liquidation queue, registered liquidators compete to execute it first. The protocol awards the liquidation to the liquidator who submits the transaction first. HLP's own risk system monitors liquidations of positions it is counterparty to, as large liquidations can cause sudden inventory changes that affect the vault's net position.
- Spread revenue
- The primary revenue source for HLP market makers. If the bid is $1,841.50 and the ask is $1,842.00, the spread is $0.50 per contract. Every time a taker buys from HLP's ask or sells to HLP's bid, HLP earns this spread. At 100,000 contracts per day with a $0.50 spread, that is $50,000 in daily revenue minus any hedging costs.
- Adverse selection
- The risk that traders who fill against HLP's orders have better information or better timing than the market-making strategy. If a trader knows an announcement is coming and HLP has posted a large ask, the trader buys from HLP at $1,842, the price jumps to $1,900, and HLP is left holding the long inventory at a loss. Good market makers adjust quotes rapidly during news events to minimize adverse selection.
Why vault liquidity matters
Hyperliquid's vAMM model is only as good as the liquidity provided by HLP and competing user vaults. Without sufficient quote depth, traders face wide spreads and high slippage, driving volume to competitors. HLP depositors are the backbone of this liquidity - their capital determines how tight spreads can be, how much size can be traded without market impact, and how resilient the protocol is during volatility.
The VaR and max exposure systems are the risk management layer that prevents HLP from taking on too much directional inventory. A vault that posts only on one side of the book would accumulate large net positions and become a directional trading fund rather than a market maker. By capping exposure and automatically widening spreads when risk rises, HLP maintains its primary function as a spread earner rather than a directional speculator.
Frequently asked questions
- What is HLP and how does it differ from user vaults?
- The Hyperliquidity Provider (HLP) is the protocol's flagship community vault - a smart contract that accepts USDC deposits and deploys that capital as market-making liquidity on Hyperliquid's on-chain order book. While anyone can deploy custom user vaults with arbitrary strategies, HLP is the canonical community market-making vault with a track record since launch. All vault types (USDC, stablecoin, crypto, W-referral) settle positions and PnL through the same Hyperliquid matching engine.
- How does the HLP vault earn money?
- HLP posts limit orders on both the bid and ask side of every perpetual market. Every time a trader crosses the spread (takes liquidity), HLP's resting order is filled and earns the bid-ask spread. A trader paying $1,842 to buy fills against HLP's ask at $1,841.50 - HLP keeps the $0.50 spread per contract. Because HLP posts on both sides, it earns spread on every buy and every sell that crosses it, regardless of price direction. Over a trading day with high volume, this compounds into meaningful yield.
- What is VaR (Value at Risk) and how does HLP manage it?
- VaR is the maximum expected loss for HLP's open positions at a given confidence level (typically 99% over a 24-hour window). The HLP risk system calculates the VaR across all open positions - if BTC moves 3% against HLP's inventory, what is the loss? HLP's risk engine caps total exposure so that the 99%-VaR does not exceed a configured threshold of the vault's total TVL. This prevents a single black-swan move from wiping out the vault. When VaR approaches its limit, HLP automatically reduces order size or widens spreads to reduce new inventory risk.
- How does the liquidation queue work?
- When a trader's position is liquidatable, the liquidation queue determines who gets to execute the liquidation and at what priority. The queue is filled by registered liquidators who compete to be first to call executeLiquidation(). The protocol takes a fee (typically 5% of the position's margin being liquidated), and the remainder is returned to the trader or absorbed as bad debt. HLP's risk system monitors the liquidation queue for its own positions - if a large position approaches liquidation, HLP may attempt to reduce size beforehand to avoid being the counterparty to a poorly-timed forced liquidation.
- What are the four vault types on Hyperliquid?
- The USDC vault (HLP) is the main market-making pool - deposits earn yield from spread revenue. The stablecoin vault holds only stablecoins (USDT, USDC, DAI) and earns yield from lending protocols integrated with Hyperliquid. The crypto vault accepts major tokens (ETH, WBTC, etc.) and runs directional strategies alongside market-making. The W referral vault is a special purpose vault for market makers who have established whitelisted (W) referral relationships with the protocol, offering discounted fees and sometimes direct APY subsidies from the protocol treasury.
- Can HLP vault deposits go negative?
- Yes. HLP earns spread income consistently but is not immune to net losing periods. If HLP accumulates a large inventory position (e.g., many longs from being the ask side during a sustained price drop), and the hedging cost exceeds spread earned, the vault's NAV per share can decline. Historical data shows HLP has recovered from drawdowns, but there is no NAV floor guarantee. Depositors should treat HLP as a risky, volatile yield position rather than a stablecoin-like product.
- What is the withdrawal process and cooldown?
- HLP enforces a 4-day withdrawal lock. When you initiate withdrawal, the clock starts and cannot be cancelled. After 4 days, you can call claimWithdrawal to receive USDC at the current NAV per share - which may be higher or lower than your entry price depending on vault performance. This lock exists to prevent last-minute exits during adverse market conditions, which could force the vault to liquidate positions at unfavorable prices to meet redemptions.
- How is the vault share price (NAV per share) calculated?
- NAV per share = (Total vault USDC assets - Net outstanding withdrawal requests) / Total shares outstanding. The vault marks all positions to market using Hyperliquid's index price every block. When a deposit occurs, new shares are minted at the current NAV. When a withdrawal is requested, shares are burnt but USDC is not transferred until after the 4-day lock. This means withdrawals are always honoured at the NAV at the time of request, not at claim time, protecting depositors from NAV inflation or deflation that occurs after they lock in their withdrawal.