Prices

The line and the close come from the Slosh price keeper.

SourceThe coin's pools on Raydium, Meteora, Orca and PumpSwap, read on-chain
FrequencyOne sample every second
Each sampleThe liquidity-weighted median price across the pools read for that coin, in USD. When the keeper tracks many coins it reads fewer pools per coin, down to its deepest pool alone
The lineThe first valid sample at or after lock
The closeThe last valid sample at or before the end of the round
Time limitEach must be within 5 seconds of its moment on the play beta, 30 seconds on real SOL, or the round is refunded

A sample isn't valid when:

  • pools more than 3% away from the median hold over a quarter of the liquidity, or
  • the price is more than 20% away from the samples just before it. The coin then has no valid price until 3 good samples in a row.

Pools with less than $2,000 of depth aren't read.

Every sample behind a line and a close is published with the pools it came from, and kept for good. The other per-second samples are kept for 14 days.

Thin coins

A round can hold at most 1.5% of the depth of the pools its price comes from. A coin needs at least $2,000 of that depth to play on the play beta, so a round there can be as small as about $30. On real SOL a coin needs at least $25,000.

Who signs the prices

One key. On real SOL the price keeper sends each line and close to the Slosh program signed with its key, and the program takes prices from no other key. What keeps that one key in check:

  • Each price goes on-chain with a SHA-256 hash of its published record. Anyone can download the record, check the hash and recompute the price, so a price that doesn't match its samples shows.
  • The program takes a price only inside the time limits above. A keeper that's down or late can't hold a round: once the deadline passes, anyone can trigger a full refund.
  • A lost or stolen key can be replaced without touching anyone's bets.

Check a result

  1. Open the round's samples at /api/rounds/<round number>/line.jsonl and /api/rounds/<round number>/close.jsonl. Round numbers are on Receipts.
  2. The line is the first valid sample at or after lock.
  3. The close is the last valid sample at or before the end of the round.
  4. Close above the line: Up wins. Below: Down wins. Equal: refund.

Paper mode

Bad Beat Pot