Hedging
An LP position holds the volatile token. A perp short of the same size on Hyperliquid offsets that exposure, so the position earns fees with less directional risk.
Where your margin lives
In your own Hyperliquid account. Driftless never holds hedge margin. You approve a dedicated agent nameddriftless: Hyperliquid agents can place orders for your account but have no ability to withdraw or transfer funds. Each user gets their own agent, so no agent is ever shared.
Setting it up
- 1Enable hedging on the position pageChoose the perp market, the share of exposure to hedge and a maximum notional.
- 2Wait for your agent addressOn its next pass the keeper publishes your agent address on-chain.
- 3Approve the agentClick Approve in the hedge card and sign. It's a named agent, so it never replaces one you already use.
- 4Fund your Hyperliquid accountDeposit USDC as margin. Unified accounts are supported.
How the keeper keeps it matched
- Target = your LP exposure × hedge %, capped at your maximum notional.
- It only trades when the gap is at least $15 and at least 5% of the target, to avoid churn.
- It grows a hedge only if you have free margin; shrinking is always allowed and is reduce-only.
- If the pool price and the Hyperliquid price disagree by more than 2%, it skips that pool.
Receipts
- Filled
- Meaning
- The full order executed; the receipt carries size, average price and Hyperliquid order id.
- Partial
- Meaning
- Part of the order executed; the next pass re-plans from the live position.
- Dropped
- Meaning
- Nothing executed (e.g. no liquidity at the limit).
- Expired
- Meaning
- No receipt was posted in time; anyone can mark it expired.
Turning hedging off
Driftless stops adjusting the hedge but leaves any open short in place, because it can't tell it apart from your own trades. Close it yourself on Hyperliquid if you no longer want it.