How It Works¶
Understanding the daily raffle system.
Raffle Cycle¶
Each raffle runs on a strict schedule:
- Snapshot (On the hour) - Token holders are identified via Helius API
- Free Entry Window (5 min) - Twitch chat entry opens for legal compliance
- Random Selection - Winner chosen using TEE verifiable randomness
- NFT Transfer - Card automatically transferred to winner's wallet
- 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:
- Winner's wallet address is identified
- The chosen NFT is transferred from the TEE vault wallet
- Transaction hash is recorded on-chain
- Transfer status is verified
Legal Compliance¶
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¶
- Architecture - Technical deep dive
- FAQ - Common questions