Hyperliquid vaults, wired end to end
How a USDC deposit becomes exchange-side exposure: the two execution engines, the bridge between them, and where the P&L settles. Every number below comes from the official docs.
Where HLP's yield comes from
The protocol vault is a market-making and liquidation machine. It is community-owned: depositors share the raw P&L with no profit cut.
How a user vault splits profit
Anyone can run one. The leader trades, depositors ride along, and the split is fixed by the protocol — worked through with real numbers:
The bridge, step by step
A tokenized vault on HyperEVM doesn't trade "in" the EVM — it asks HyperCore to trade. That request is a log, not a call, and the gap between the two matters.
e.g. ID 1 limit order — price and size scaled ×10⁸ · ID 7 USDC transfer between the contract and its Core account
Reading Core state from Solidity
The reverse direction needs no bridge delay: read precompiles expose HyperCore state directly, guaranteed consistent with the moment the EVM block was built.
Cost: 2000 + 65 × (input + output bytes) gas. Invalid input burns everything passed to the call frame — validate before you query.
The three vault types, side by side
Failure modes worth memorizing
You are the counterparty
Every vault takes the other side of the venue's traders. March 2025: a trader manipulated price into a concentrated position and dumped it on HLP for a ~$4M loss. Leverage was capped afterward — 40× BTC, 25× ETH.
The bridge is not atomic
A CoreWriter call succeeds when the log is emitted, not when the action lands. Deposits, share mints, and trades from an EVM vault are eventually consistent — they can fail after the transaction that requested them has already confirmed.