Cantilever
DocsGetting started

How it works

From creating a vault to repaying credit.


1. Create a vault

VaultFactory creates one vault (an EIP-1167 clone) per address. The vault is yours; only you can trade, draw credit and withdraw.

2. Activate the vault's HyperCore account

The vault is a new HyperCore account. The first deposit must be more than 1 USDC; Hyperliquid deducts 1 USDC as an account creation fee. After that, deposits work normally.

3. Deposit and trade

USDC goes into the vault, then into the vault's HyperCore perp account. Orders are sent through CoreWriter on behalf of the vault. Only IOC orders are accepted, so no order is left resting during a liquidation.

4. Draw credit

When the position is in profit, the vault computes its credit limit from precompile data and borrows USDC from the pool to an address you choose. The collateral stays in the vault.

5. Repay or withdraw

Anyone can repay at any time, even while the pool is paused. Withdrawals to the owner are only allowed if the debt stays covered with health above the limit afterwards.

Updated 2026-12-01