docs

Risks

Overview

You can lose everything you post as margin. You can lose everything you deposit as backing or pool liquidity. This page lists where those losses come from, what the program does about each, and what it does not. Each entry links to the page with the full rule. Where this page and the program disagree, the program is right.

Nothing in these docs is investment advice.

The program

  1. Not audited. No audit firm has reviewed the program. 126 Kani harnesses and the unit and integration tests check the arithmetic and the instructions (see Verification). That is not an audit. Account validation, token transfers and whole instructions are tested, not proven.
  2. Upgradeable. The program has an upgrade authority. An upgrade can change any rule on these pages.
  3. The pool authority has powers. It can pause a market or the pool, retune a market's parameters (held to consistency checks, not to the listing bounds), lower a budget, apply a split or dividend, set a session, and name the mark keeper. It cannot raise a budget.

A bug can lose funds that no rule here protects.

Leverage and liquidation

  1. Leverage is per market. A market priced from a spot pool follows the pool's sustained depth: 2x under $10k, 3x to $50k, 4x to $250k, 5x above. It falls on the next reading when the pool thins. A Pyth market the pool authority lists can carry more: SPYx allows 20x. Outside US trading hours, equity markets drop to a lower closed-session cap. See Margining and Sessions.
  2. Any account can liquidate. A position whose equity falls under maintenance margin is closed. The trigger is the market's risk price; the close is at the worse of the risk price and the oracle. The liquidation fee comes out of the position. The owner gets back what is left after the fee, which can be nothing.
  3. The risk price moves at most 40 bps a slot, and counts at most 3 slots per step: 1.2% per reading after a gap. A spike that comes back within a few slots liquidates nobody. A real move gets there a step at a time, so positions are closed on the way while they still have margin. See Liquidations.
  4. One position has a size cap. It is a figure over your leverage, set by the market's depth tier: on a 3x pool, $10,000 at 3x or $30,000 at 1x; on a feed market, $50,000 at 20x. See Margining.

A price someone has moved

The attacks on other venues (JELLY and POPCAT on Hyperliquid, Mango, GMX's AVAX) moved a thin price and took the move out of the pool before anything slower caught up. Three rules here answer that:

  1. Profit is paid at no better than the risk price. A close fills at the batch's price, but what it realizes as profit is held to the profit at the risk price, which follows the mark at 1% a second. A loss is realized at the fill. In a fast move, a winner who closes before the risk price catches up is paid less than the mark shows, and the rest stays with the pool. Waiting a few seconds pays it in full.
  2. One position is capped by depth. The move a position can take out of the pool is no bigger than what moving the pool costs.
  3. Closes only while the price runs ahead. When the mark sits more than a band from the risk price (3% on a feed market), or a pool's own price sits more than 5% from the mark, or a pool's depth falls under $1,000, the market takes closes only until it settles. The trade screen says "Price moving fast. Closes only." See Price sources.

Prices

SourceWhat protects itWhat does not
Pyth feedOnly moves forward: a price older than the newest the market used is refused, two prices under one publish time are refused, a publish time more than 5 seconds ahead of the chain is refused. Stale or too-uncertain prices pause orders.A wrong feed is a wrong mark.
Spot poolNo key picks the mark on mainnet. A Raydium mark walks toward the pool's own 30-second average (twap_mark); a Meteora mark is folded from the pool (observe). Anyone can send either crank, and neither takes a price from the sender. A mark moves at most 1% a second, 10% per refresh, and only a seasoned mark is refreshed from the average. Depth, leverage and budget caps are read from the pool on chain.A pool held off its price for the whole window moves the mark, a step at a time. On devnet the venue's keeper key still pushes marks, within 10% of the pool.

See Price sources.

Keepers

The venue's server clears batches, refreshes marks, runs liquidations and syncs rewards. If it stops:

  1. Batches stop clearing until someone else sends the clear. Orders already in a batch wait.
  2. Marks go stale until someone else refreshes them, and those markets pause rather than fill at an old price.
  3. Liquidation, clearing, settlement and refreshing a mark (twap_mark, observe) stay open to any account, and none takes a price or a choice from the sender. On devnet only, marks of test-copy tokens are pushed by the named keeper key, which no other account can do.

Where losses go

A market's losses are paid in this order:

  1. The backing posted behind it.
  2. Pool liquidity, up to the market's loss budget.
  3. The insurance fund.

Settlement pays in USDC, so backing posted in tokens pays afterwards: it repays the fund first, then the LPs. A batch's closes are netted, so the order anyone settles them in does not change who pays. See Loss budget.

A winner is never paid past the budget. When a market cannot pay every winner, each winning close gets the same share of its profit and the rest is not paid. A profitable position can be paid less than its paper gain, also when it closes before the risk price has reached the mark. See Loss budget and Profit haircuts.

Backing

  1. First loss. Backers take the market's losses before the pool, up to everything they posted. Later gains repay them only up to what was drawn.
  2. Exits hold back open losses. A backer can withdraw at any time, less their part of what the market's traders are up now, at the oracle or the risk price, whichever is more. When the price cannot be read, their part of the whole remaining budget is held.
  3. Paid in kind. Backing in USDT or SOL is held as posted and paid back in the pot's mix. SOL counts at 80% toward the budget and falls with the SOL price.

See How to underwrite a market.

The pool

  1. Every market at once. Pool liquidity takes the losses backers do not, up to each market's budget, across all markets together.
  2. Withdrawals wait 150 slots, about a minute. Shares sit in escrow, still exposed, and are paid at what the pool is worth when claimed, not when requested.
  3. Paid in kind. A claim pays USDC plus the same share of any tokens the LPs hold from backing they covered.
  4. Priced from a checkpoint. Deposits and withdrawals price shares from a pass over every market at most 60 seconds old. While a market's price is unreadable, a deposit counts it at the least it could cost the LPs and a withdrawal at the most, so neither can profit from the stale price.

See The pool.

Liquidity

A batch fills only what crosses. A thin market can leave an order unfilled, or fill it far from the reference price inside the band. The pool fills only what makers leave, and only within the market's budget. See The auction.

Points

  1. Points are not a token and not a promise of one.
  2. They can be farmed with many wallets. The program caps trading points at 250,000 per wallet per UTC day and pays nothing on a close held under 10 minutes. It cannot tell one person's wallets apart. Each extra wallet gets its own cap.
  3. Seasons and creator scores are kept by the server, not the program. The on-chain total per wallet is all-time.

See Referrals and points.

Listing

Anyone can open a market. A market on unwind is not an endorsement of the asset, its issuer or the account that opened it.

Devnet

Today unwind runs on devnet only. It settles in test USDC against devnet copies of tokens marked at their mainnet prices. Balances carry no value, and parameters, pools and markets can change or be reset. See Devnet.

Assets and jurisdictions

Tokenized stocks (xStocks) are not available to US persons. unwind is not affiliated with Backed, Jupiter, Pyth, Raydium, Meteora or the issuers of the assets its markets track. You are responsible for the rules where you live.

On this page