Example
Illustration of the contract's mathematics
Last updated
Illustration of the contract's mathematics
Last updated
Prize Pot = 5,000,000 USDC
Tickets Sold = 1,000,000
Jackpot Prize = 1,500,000 USDC
BonusAllocation = 0.5m USDC
BonusMultiplier = 1.5
Match | Number of winners |
---|---|
Ticket Sales = 1m * 2 = 2m USDC
To Treasury= 2m * 20% = 0.4m USDC
To Frontend Rewards = 2.0m * 10% = 0.2m USDC
To Prize Pot = 2.0m * 0.7 = 1.4m USDC
Jackpot Prize = 1.5m USDC + 0.5m USDC = 2m USDC
Total Prizes to Players:
Match 3 Prizes = 300,000 * 2 * 1.5 USDC =900,000 USDC
Match 4 Prizes = 20,000 * 7 * 1.5 USDC = 210,000 USDC
Match 5 Prizes = 1,500 * 100 * 1.5 USDC = 225,000 USDC
Match 6 Prizes = 120 * 2,000 * 1.5 USDC = 360,000 USDC
Final Balance:
Prize Pot: 5m + 1.4m - (0.9m + 0.21m + 0.225m + 0.36m) = 4.705m USDC
BonusAllocation = 0
BonusMultiplier = 1
Ticket Sales = 1m * 2 = 2m USDC
To Treasury = 2m * 20% = 0.4m USDC
To Frontend Rewards = 2m * 10% = 0.2m USDC
To Prize Pot = 2m * 0.7 = 1.4m USDC
Jackpot Prize = 2m USDC
Total Prizes to Players:
Match 3 Prizes = 300,000 * 2 USDC = 600,000 USDC
Match 4 Prizes = 20,000 * 7 USDC = 140,000 USDC
Match 5 Prizes = 1,500 * 100 USDC = 150,000 USDC
Match 6 Prizes = 120 * 2,000 USDC = 240,000 USDC
Final Balance:
Prize Pot: 5m + 1.4m - (0.6m + 0.14m + 0.15m + 0.24m) = 5.27m USDC
Jackpot winners = 1
BonusAllocation = 0.5m USDC
BonusMultiplier = 1.5
Ticket Sales = 1m * 2 = 2m USDC
To Treasury = 2m * 20% = 0.4m USDC
To Frontend Rewards = 2m * 10% = 0.2m USDC
To Prize Pot = 2m * 0.7 = 1.4m USDC
Total Prizes to Players
Jackpot Prizes = 1.5m + 0.5m = 2m USDC
Final Balance:
Prize Pot: 5m + 1.4m - 2m = 4.4m USDC
Jackpot winners = 1
BonusMultiplier = 1
BonusAllocation = 0
Ticket Sales = 1m * 2 = 2m USDC
To Treasury = 2m * 20% = 0.4m USDC
To Frontend Rewards = 2m * 10% = 0.2m USDC
To Prize Pot = 2m * 0.7 = 1.4m USDC
Total Prizes to Players
Jackpot Prizes = 1.5m
Final Balance:
Prize Pot: 5m + 1.4m - 1.5m = 4.9m USDC
Match | Number of winners |
---|---|
3 numbers
300,000
4 numbers
20,000
5 numbers
1,500
6 numbers
120
7 numbers
0
3 numbers
300,000
4 numbers
20,000
5 numbers
1,500
6 numbers
120
7 numbers
0