Documentation
The complete technical documentation for the 1DollarMillion protocol.
1. Protocol Overview
The 1DollarMillion protocol is a no-loss lottery on the Polygon network. The protocol combines a Rotating Savings and Credit Association (ROSCA) with $1/day deductions to create a prize pool that grows automatically. When the pool reaches $1,000,000, a winner is selected randomly via Chainlink VRF.
2. Tokenomics
The contract deducts 1 USDT per day from each active user to keep them eligible for the draw. These deductions feed the prize pool. When the pool reaches $1,000,000, a draw is triggered automatically.
3. Prize Distribution
When a draw completes, the $1,000,000 is distributed as follows: $995,350 to the winner, $3,650 locked for 10 years, $1,000 operational fee. No hidden fees.
4. Contract Addresses
Main contract: 0x96B5a67e048B630e851C688D44BaFdD10031cB9d (Polygon). USDT: 0xc2132D05D31c914a87C6611C10748AEb04B58e8F. Verify the full source code on Polygonscan.
5. Frontend Integration
The frontend is built with Next.js 16 + wagmi v2 + viem. Uses the pruned ABI from lib/contract/config.ts to read contract data. All read calls target Polygon Mainnet (Chain ID: 137).
