Winner Selection Logic

CTpot selects winners entirely on-chain.

There is no manual draw, no admin input, and no off-chain process.


When Is the Winner Selected?

  • Winner selection happens automatically when a lottery round ends

  • Ticket sales are closed permanently

  • The draw is executed by the smart contract

No one can delay or interfere with this process.


How the Winner Is Chosen

  1. Total tickets sold are finalized

  2. A random index is derived from blockchain data

  3. One ticket is selected

  4. The wallet owning that ticket becomes the winner

Every ticket has equal probability.


Source of Randomness

CTpot uses blockchain-derived values to generate randomness, such as:

  • Block hashes

  • Block numbers

  • Transaction-level data

These values are:

  • Unpredictable before execution

  • Immutable after execution

  • Publicly verifiable


No Admin Control

There is no function that allows:

  • Manually picking a winner

  • Re-rolling the draw

  • Skipping or cancelling results

  • Editing ticket data

Once executed, the result is final.


Fairness Guarantees

  • 1 ticket = 1 chance

  • More tickets = higher odds

  • No weighting

  • No modifiers

  • No hidden rules

All logic is enforced by code.


Verifiability

Anyone can verify:

  • Total number of tickets

  • Winning ticket ID

  • Winner’s wallet address

  • Prize payout transaction

Everything is visible on-chain.


Important Notes

  • Results cannot be reversed

  • No appeals or claims

  • No reruns

Code decides. Humans don’t.

Last updated