Smart Contract Overview

CTpot runs entirely on smart contracts.

There are no backend servers, no custodial wallets, and no off-chain execution. All lottery logic is enforced by immutable code on the blockchain.


What the Contract Does

The CTpot smart contract is responsible for:

  • Accepting CHOGTARD deposits

  • Converting deposits into lottery tickets

  • Tracking ticket ownership

  • Managing lottery rounds

  • Selecting winners

  • Distributing prize pools

Every action follows predefined on-chain rules.


Ticket Logic

  • 10,000 CHOGTARD = 1 Ticket

  • Users may buy multiple tickets per transaction

  • Each ticket is permanently linked to a wallet address

  • Ticket data cannot be edited or deleted

Tickets are non-transferable and final once issued.


Round Management

Each lottery round is controlled by the contract:

  • Only one active round exists at a time

  • Ticket sales are open during the active round

  • End conditions are enforced by code

Once a round ends, it cannot be restarted.


Winner Selection

  • Winner selection is triggered automatically

  • Selection uses blockchain-derived randomness

  • No manual input or admin calls

The contract decides the winner — not people.


Prize Distribution

  • The entire prize pool is sent to the winner

  • Payouts occur automatically

  • No claim function is required

Transfers are atomic and irreversible.


Permissions & Control

CTpot contracts are designed with minimal or no admin permissions.

Admins cannot:

  • Withdraw user funds

  • Change ticket prices

  • Modify winners

  • Interfere with active rounds

All critical rules are hard-coded.


Security Design

The smart contract includes:

  • Strict input validation

  • Reentrancy protection

  • Deterministic execution paths

There are no hidden backdoors or emergency drains.


Transparency

All contract activity is:

  • Public

  • Verifiable

  • Indexed by block explorers

Anyone can independently verify:

  • Ticket counts

  • Prize pools

  • Winners

  • Payout transactions


Final Note

CTpot is governed by code, not trust.

If a rule is not written in the smart contract, it does not exist.

Last updated