A vault you own
Every trader gets their own vault contract. That contract address owns a HyperCore account, which holds the margin and positions.
Cantilever lends USDC against part of your unrealized Hyperliquid perp profit. Margin and positions stay in a vault contract you own, read straight from HyperCore in the same block.
Experimental · self-audited, not a third-party audit · not financial advice
The surface above moves harder the more BTC has moved in 24h. Live.
Move the BTC price. The same risk engine as the contracts turns an example profit into credit, and the beam bends with the load. Below zero profit, the load drops to nothing.
Move across the drawing to move the BTC price
Example: 0.25 BTC long, 2,000 USD collateral, 10× leverage
Mark price, 24h change, funding and volume come from the public Hyperliquid API and refresh every few seconds.
Like a cantilever beam: fixed at one end, carrying load at the other. The collateral sits on HyperCore; the credit can be spent anywhere.
Every trader gets their own vault contract. That contract address owns a HyperCore account, which holds the margin and positions.
Positions, mark and oracle prices, and margin come from HyperCore precompiles during the transaction. No relayer, no stale data.
When the position is in profit, the vault can borrow USDC from the LP pool. The collateral never leaves the vault.
If health drops below 1, anyone can close positions, pull funds and repay the pool. Whatever is left stays with the trader.
The credit limit is the smallest of four limits. The parameters below are read live from the RiskConfig contract on mainnet.
Conservative pricing: longs use the lower of mark and oracle, shorts use the higher.
Reading contracts…
These numbers are read from the deployed contracts. Hard caps are enforced in code, not promised.
No admin function can move trader or LP funds. The admin can only pause new credit and change parameters within bounds locked in code.
If HyperCore data cannot be read, new credit is refused. Repayment and liquidation keep working, even while paused.
Every credit decision uses HyperCore precompiles in the same block. No third-party key can fake the data.
Credit per vault, total credit and pool size are capped in the contracts. The numbers are small during testing.
Unit, fuzz and invariant tests, a 600-step random walk, and 500-vector parity between TypeScript and Solidity.
A self-audit was done and published. It is not a third-party audit; an independent audit is still planned.
The calculator reads any Hyperliquid account. Read only; nothing is signed.