Draws
How a draw works
From a full pot to a verified winner in a few minutes.
A draw has six steps. The order matters: the list of tickets is locked on-chain before the random number exists, so nobody can arrange the tickets around a result they already know.
- The draw opens. As soon as the pot is worth the prize +10%, the draw opens by itself: our keeper bot opens it within a minute. The contract fixes the snapshot block, the prize amount and a drand round about five minutes in the future.
- Snapshot. The keeper rebuilds every balance from the coin's on-chain transfer history up to the snapshot block, applies the ticket rules and publishes the file. Its Merkle root is committed on-chain at least one minute before the drand round exists. If it is late, the draw is reset and starts again.
- Check window. Until the drand round exists, the published snapshot can be checked against the chain, and the PrizeStreet owner (the contract's guardian role) can veto it: the round then takes a new snapshot. A veto can't choose a winner, because after the beacon the snapshot can no longer change. After the draw, anyone can verify it on its draw page.
- Randomness. drand publishes the round, the keeper delivers its signature, and the contract verifies it on-chain, so it can't be forged.
- Winner. The random number picks one ticket. The keeper settles the draw with the Merkle proof for that ticket, and the contract accepts only the holder who owns it.
- Next round. The prize is reserved for the winner and the next round starts at once. There is no minimum pause between draws.