Cantilever
Live on HyperEVM · chain 999

Spend your profit.
Keep the position.

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

Perp marketsHyperliquid · live
BTCBitcoin—
ETHEthereum—
HYPEHyperliquid—

The surface above moves harder the more BTC has moved in 24h. Live.

Non-custodialNo relayerFail-closed
BTC—ETH—HYPE—SOL—XRP—BNB—DOGE—SUI—AVAX—LINK—
DWG.02 · Load test

Put the beam under load.

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.

  1. 01Same maths as the contractsThe numbers come from @cantilever/risk, which mirrors RiskMath.sol with 500 parity vectors.
  2. 02Conservative by defaultA 50% haircut and a fixed buffer are taken off the profit before any credit is offered.
  3. 03Health, not hopeCredit is capped so health stays above the liquidation threshold at the moment of borrowing.
Load test

Move across the drawing to move the BTC price

—
SUPPORT · HYPERCOREABδLOAD · CREDIT$1,045.00M-15%-5%0%+5%+15%+25%
Simulated BTC price$64,800.0+8.0%
uPnL$2,100.00
Credit limit$1,045.00
Health at limit3.14

Example: 0.25 BTC long, 2,000 USD collateral, 10× leverage

DWG.03 · Markets

Market data, straight from Hyperliquid.

Mark price, 24h change, funding and volume come from the public Hyperliquid API and refresh every few seconds.

BTC-USD Perp
—7D
Open markets →
DWG.04 · Load path

Four parts, one load path.

Like a cantilever beam: fixed at one end, carrying load at the other. The collateral sits on HyperCore; the credit can be spent anywhere.

01

A vault you own

Every trader gets their own vault contract. That contract address owns a HyperCore account, which holds the margin and positions.

02

Read in the same block

Positions, mark and oracle prices, and margin come from HyperCore precompiles during the transaction. No relayer, no stale data.

03

Credit from the pool

When the position is in profit, the vault can borrow USDC from the LP pool. The collateral never leaves the vault.

04

Step-by-step liquidation

If health drops below 1, anyone can close positions, pull funds and repay the pool. Whatever is left stays with the trader.

DWG.05 · Risk engine

Open formula, on-chain parameters.

The credit limit is the smallest of four limits. The parameters below are read live from the RiskConfig contract on mainnet.

spendable
max(0, uPnL × (1 − haircut) − buffer)
equity limit
(collateral − margin used) × LTV
credit limit
min(spendable, equity limit, vault cap, pool cap)
health
collateral × liqThreshold ÷ debt

Conservative pricing: longs use the lower of mark and oracle, shorts use the higher.

Reading contracts…

DWG.06 · On-chain

Open contracts on HyperEVM.

These numbers are read from the deployed contracts. Hard caps are enforced in code, not promised.

 —Reading contracts…
 —Reading contracts…
 —Reading contracts…
 —Reading contracts…
DWG.07 · Principles

Built so nobody holds your funds.

Non-custodial

No admin function can move trader or LP funds. The admin can only pause new credit and change parameters within bounds locked in code.

Fail-closed

If HyperCore data cannot be read, new credit is refused. Repayment and liquidation keep working, even while paused.

No relayer

Every credit decision uses HyperCore precompiles in the same block. No third-party key can fake the data.

Hard caps

Credit per vault, total credit and pool size are capped in the contracts. The numbers are small during testing.

Layered testing

Unit, fuzz and invariant tests, a 600-step random walk, and 500-vector parity between TypeScript and Solidity.

Honest about risk

A self-audit was done and published. It is not a third-party audit; an independent audit is still planned.

DWG.08 · FAQ

Common questions.

Do I have to close my position to get credit?
No. Credit is based on unrealized profit while the position stays open in your vault. If the price turns and health drops below 1, the position can be liquidated.
Who holds my collateral?
Your own vault contract. Its HyperCore account is the contract address. The team has no function to withdraw your funds.
Why is there a 1 USDC fee when creating a vault?
Hyperliquid charges a 1 USDC account creation fee on the first deposit to a new HyperCore account. It is not a Cantilever fee.
Is it safe?
Nothing is fully safe. The contracts went through a self-audit with fixed and published findings, but no third-party audit yet. Only use funds you can afford to lose.
Which network does Cantilever run on?
HyperEVM mainnet (chain 999). Spending credit on Elysium is planned once HyperCore precompiles are available there.

Estimate credit from your position.

The calculator reads any Hyperliquid account. Read only; nothing is signed.

Open calculator