Provably fair
Nobody picks the winner. Not us, not Pyth, not the players. And you can check every round.
Two parties, one random number
Every draw mixes two secrets. Ours: an entry seed that every entry updates. It freezes when the round closes, because nobody can enter after that, and it is sent with the draw request. Pyth's: a value its Entropy provider committed to in advance and reveals only after the request is on-chain.
Pyth Entropy combines both into one random number and delivers it to the contract. Neither side sees the other's part in time to steer the result, and the contract never re-rolls: if the number doesn't arrive, the round is refunded.
Then it's plain math: winning index = random number mod total entries. The entry range that contains it wins.
Verify any round in 4 steps
- 1Open the round page/round/101 (or tap a result card). It lists every purchase with its entry range, the random number and the winning index, all read from the contract.
- 2Open the draw txThe round page links it as “Draw tx”. Its DrawRequested event shows the Entropy sequence number and the entry seed sent to Pyth (userRandomNumber).
- 3Find Pyth's revealOpen the “Randomness callback tx”. The Pyth Entropy contract (0x6E7D74FA7d5c90FEF9F0512987605a6d546181Bb) logs RevealedWithCallback for that sequence number: the entry seed, Pyth's revealed value and the resulting randomNumber, the same number the round page shows.
- 4Do the mathrandomNumber mod totalEntries = the winning index. Find the purchase whose range contains it: that's the winner. The “Verify this round” panel on every finished round does this in your browser.
Contracts
Source code: the Contract tab on BaseScan.
Questions
- Can round pick or change the winner?
- No. The winner comes from one Pyth Entropy random number and the entries stored in the contract. The contract has no function that sets a winner, and it never re-rolls a draw.
- Can Pyth or a player steer the result?
- Not in time. Pyth's provider committed to its value before the draw request, and the entry seed freezes when the round closes. Neither side sees the other's part before both are fixed.
- What if the random number never arrives?
- Then nobody wins that round: after 1 hour it is cancelled and every entry is refunded in full. It is never re-rolled.