The official price of a round or challenge is:
the median of three exchanges (Coinbase, Kraken and Bitstamp), each taken as its first BTC/USD trade at or after the draw second.
The draw second is exactly 24 hours after the predictions closed (12:00:00 PM UTC). From each exchange we use one real trade, not an average or a delayed quote. The median is the middle of the three prices, so a single faulty or manipulated source cannot decide a round.
All three exchanges must answer. If one has no trade yet, the bot waits and retries; it never signs with fewer than three sources. If the price cannot be fixed in time, the round is refunded to everybody.
A challenge uses the draw of the official round it closes with: same second, same price. The creator cannot choose it.
#Why these exchanges
All three quote prices with cents, which the exact-cent jackpot requires, and publish trade data that anyone can open.
#On-chain publication
- At the draw, the bot reads each exchange's first trade and computes the median.
- It signs a report with the price and the draw time.
- The contract verifies the signature before accepting the price. An unsigned or wrongly signed price is rejected.
- A fixed official price cannot be changed.
#What the bot cannot do
The bot cannot move anybody's funds, alter a prediction or pick a different winner: the contract ranks the entries recorded on-chain against the fixed price. The bot's wallet only pays network fees.
See also: The fairness proof.