Leverage and hedging
Leverage and hedged vaults both borrow inside the market they use. Their debt counts toward utilization and pays interest to its LPs like any other loan.
Updated Nov 9, 2026
Two mechanisms let one asset carry more exposure than a plain deposit: isolated leverage, a position that borrows and swaps in one step, and hLP, the hedged vault behind single-sided liquidity, which borrows the other token so a one-token deposit can sit in the market as two-sided liquidity. Both reuse the swap, debt and cash machinery every other instruction uses.
Isolated leverage
A position is opened with margin in one asset and a multiplier . Idealised, it borrows of the same asset from the market and swaps through the curve; the output is held in the leverage collateral vault as the position's collateral, and the loan is tracked in the market's isolated debt bucket for that asset. Actual entry pays fees, impact and any transfer costs, so the collateral is a little less than the notional divided by the entry price.
Each position stores its margin terms when risk is added:
| Constant | Value | Meaning |
|---|---|---|
| Maximum multiplier | 20× | Absolute notional-over-margin ceiling |
| Maintenance tiers | 7%, 12%, 17% bands | Weighted by position size against stored side depth |
| Entry buffer | 3 percentage points | Added above maintenance before the crowding floor |
Crowding can raise the equity required for new risk. Existing stored requirements do not move merely because other traders open positions or LP liquidity later changes.
Health uses symmetric-EMA collateral value minus debt against the position's stored maintenance requirement. Public-borrow aggregates play no part; a leverage position never affects a lender's health check even though its debt counts toward utilization and pays the same rate.
Opens, size changes and closes use the concentrated swap path. Margin increases repay debt without changing collateral; liquidations use the atomic flash or emergency settlement paths.
A conditional order or liquidation trigger authorises an attempt rather than guaranteeing execution.
The leverage-delegate program
Orders live in a second program. A position owner creates a delegation naming the delegate program and the actions it may take. The delegate flow is two hooks: a before hook that approves a close, and an after hook that approves the settlement, so a keeper can execute a bounded partial or full close into a custody account without ever holding unchecked control of the position.
| Order | Kind | Trigger | Notes |
|---|---|---|---|
| Take-profit | 1 | Closeout price at or above the level | close_bps allows partial closes |
| Stop-loss | 2 | Closeout price at or below the level | Liquidation supersedes it if health has already failed |
| Entry order | limit | Market reaches the limit price before expiry | Margin escrowed; expiry of one hour to thirty days; no good-till-cancelled |
| hLP stop-loss | 1 | NAV per share at or below the level | Shares escrowed, yield destination preserved |
| hLP stop-rate | 2 | Funding APR, averaged with a twelve-hour half-life, at or above the level | Same escrow |
Every executed built-in order pays a flat protocol fee of 10 bps of its executed value to the futarchy treasury, in addition to swap fees and the executor's incentive. hLP order execution also deducts a 5% executor bounty from the withdrawal output before the owner's minimum-output check.
Protection orders
A sponsor, who need not be the borrower, can escrow srLP or hLP and authorise a keeper to repay a position's debt or top up its collateral when its health drops to a trigger, up to a target, within per-execution limits. The keeper advances the payment, redeems the sponsor's escrowed LP through the ordinary withdrawal path, is reimbursed plus a bounded reward, and the remainder returns to the sponsor. Everything happens in one instruction and rolls back on any failure.
Anyone may also repay or donate collateral to any position directly, with no order and no reward.
hLP vaults
Each market has a base vault and a quote vault. The base vault holds a funded srLP position whose net exposure is base; quote is symmetric. Writing for the vaults' target-asset equities and for the ordinary tranche, the canonical endpoint after any trade is
The opposite-asset claim each vault holds equals its funding obligation. Vault-owned shares are reconstructed from the ordinary supply :
None of this scans hLP holders. A trader is quoted on ; the program then rebuilds both vaults at the quoted endpoint and checks the debt, cash, interest and reserve changes within three raw atoms per side.
Leverage of a vault
Gross leverage of the base vault relative to its equity is
Both are exactly 2 at a balanced constant-product point and drift with the inventory weights on a concentrated curve away from the centre.
Funding
hLP funding debt bears the full indexed borrow rate. When it is paid, the protocol takes its share and the rest is indexed only over srLP held outside the vaults, at the balance frozen for that operation.
A deposit is admitted only if the vault's projected funding debt fits the borrowed asset's current cash headroom; that is a deposit check, not a guarantee that funding stays under cash after every trade. Cash-constrained transitions can reject; when hLP leverage-up cannot execute for lack of cash, swaps stay live and the unexecuted rebalance is carried as residual exposure.
Recovery and closeout
Let be a vault's funding debt, its opposite claim and revenue available for netting. The recovery gap is . Gaps under 25 basis points of are ignored; above that the market offers swaps that supply the borrowed asset a discount
paid as extra target-asset output out of that vault's equity, capped by the equity itself. Solvent gaps can use preview_hlp_flash followed by atomic begin_hlp_flash and settle_hlp_flash, allowing the caller to source the fixed payment externally instead of forcing execution through Dusk's curve.
If the vault becomes insolvent at both the live curve mark and symmetric EMA, permissionless native or flash terminal closeout retires its srLP. Recovery repays principal first; funded principal shortfalls are allocated to junior backing first, then senior backing, and unpaid interest is canceled.
Already funded yield claims remain recorded. The native closeout pays a bounded caller bounty from recovered interest.
Related
- Leverage and Single-sided liquidity: the guides.
- Keeper roles: who executes orders, flash recovery and closeouts.
- Program reference: leverage and hLP and yield.