How It Works

Understanding the daily raffle system.

Raffle Cycle

Each raffle runs on a strict schedule:

  1. Snapshot (On the hour) - Token holders are identified via Helius API
  2. Free Entry Window (5 min) - Twitch chat entry opens for legal compliance
  3. Random Selection - Winner chosen using TEE verifiable randomness
  4. NFT Transfer - Card automatically transferred to winner's wallet
  5. Announcement - Winner announced on Twitter/X

Entry System

Token Holder Entry

All wallets holding $MISS tokens are automatically entered. The system snapshots token holdings at the start of each raffle.

Important: Each wallet receives exactly 1 entry regardless of holdings (legal requirement).

Free Entry

During the 5-minute entry window before each raffle, users can enter for free via Twitch chat. This is required for legal sweepstakes compliance in many jurisdictions.

Randomness

Winner selection uses Phala TEE (Trusted Execution Environment) for verifiable randomness:

  • Hardware-backed Intel TDX technology
  • Remote attestation proofs
  • replay attack prevention
  • Cannot be manipulated or predicted

NFT Transfer

After the winner is selected:

  1. Winner's wallet address is identified
  2. The chosen NFT is transferred from the TEE vault wallet
  3. Transaction hash is recorded on-chain
  4. Transfer status is verified

The platform is designed for legal sweepstakes compliance:

Requirement Implementation
No purchase necessary Free entry via Twitch chat
Equal opportunity 1 entry per wallet
Transparent selection Verifiable randomness with proofs
Fair odds Randomized selection, no manipulation

Technical Flow

sequenceDiagram
    participant Timer
    participant System
    participant Helius
    participant TEE
    participant Vault
    participant Blockchain

    Timer->>System: Start raffle
    System->>Helius: Snapshot token holders
    Helius->>System: Return wallet list

    Note over System: 5-minute entry window

    System->>TEE: Request random seed
    TEE->>System: Return verifiable seed
    System->>System: Select winner

    System->>Vault: Request NFT transfer
    Vault->>Blockchain: Execute transfer
    Blockchain->>System: Return tx hash

    System->>Blockchain: Verify transfer
    System->>System: Announce winner

Next Steps