Provably Fair

Every lottery asks you to trust that the drawing is fair. Megapot is different: you can verify it yourself.

Megapot uses Pyth Network's entropy protocolarrow-up-right to generate winning numbers. Pyth is a trusted data provider that secures over $7 billion in blockchain assets. When the drawing runs, the winning numbers are generated by Pyth and recorded permanently on-chain. Anyone can check the result—no special access required.

This is what "provably fair" means: instead of asking you to trust us, we give you the tools to verify for yourself.


Secured by the Best

Our smart contracts were audited by top security firms:


How to Verify Results

Step 1: Locate Jackpot Settlement Transaction

Need to link the place in app to see this information

Step 2: How to Verify the Blockchain Transaction

Search for the RevealedWithCallback event which is emitted from Pyth Entropyarrow-up-right Base contract for generating random numbers: 0x6E7D74FA7d5c90FEF9F0512987605a6d546181Bbarrow-up-right. You can confirm this is the correct contract in Pyth's docsarrow-up-right.

Network

Next you can view the actual winning numbers and the amount of winner per tier in the WinnersCalculated event. This event is emitted by the Jackpot contract: 0x.... The winningNormals and winningBonusball make up the 6 numbers selected as part of the draw. These numbers are generated using the random number returned by Pyth (see below for more information). The uniqueResult field shows the winners within each tier from 0-11 (no matches to jackpot). No matches will always be 0 but the rest reflect the amount of tickets in that tier. Read our article on prize tiers to learn more!

Network

Deep Dive

Two-Party Randomness

Here is the key to why Megapot is fair: two-party randomness.

When a drawing runs, two things happen:

  1. A random numbers are requested from Pyth Network, anyone can trigger this once the drawing time arrives

  2. Pyth returns a random number on-chain

  3. Pyth's random number is combined with an on-chain random number to create a seed

  4. The seed is used to select 5 random numbers and a bonusball number

No single party can know what seed will be generated using Pyth and the on-chain randomness. This makes it impossible for anyone—including the Megapot team—to predict or influence the outcome. The results cannot be rigged because no single party controls the randomness.

For more technical details, see Pyth's documentationarrow-up-right.


Why You Can Trust It

Three things make Megapot provably fair:

1. Independent randomness

The winning numbers come from Pyth Network, not from Megapot. Anyone can create a number request, it is not reliant on the Megapot team.

2. Permanent public record

Every selected combination of numbers is recorded on the blockchain for each drawing. This is a permanent record that anyone can inspect at any time. Nothing can be changed after the fact.

3. No human intervention

Once ticket sales close, the entire process runs automatically through smart contracts. No one can step in to change the outcome.


Last updated