Last few weekends, I’ve been dabbling into a very basic and simple Lottery type game for secret network.
It’s called Lucky Number and basically there are 3 Pools, each having a range of numbers that users can choose and different round time intervals.
So, users can go to a pool, choose a number and pay a fixed amount of sSCRT into the contract. After the predetermined time associated with that pool, there is a trigger to generate a random number on the pool. (The triggerer gets a fixed fee of the pooled sSCRT to pay for gas costs)
If there is enough participants on that pool, the pooled sSCRT is distributed to the winners that got the winning number right. if no one choose the winning number, the pooled sSCRT goes to the next round as a Jackpot!
- Pool 3:
- Entry fee: 1 sSCRT
- Numbers: 1 - 5
- Minimum Participants: 5
- Round Time: 5 min
- Pool 2:
- Entry fee: 5 sSCRT
- Numbers: 1 - 15
- Minimum Participants: 15
- Round Time: 1 hour
- Pool 1:
- Entry fee: 10 sSCRT
- Numbers: 1 - 30
- Minimum Participants: 30
- Round Time: 12 hours
Here is the holodeck-2 testnet version of this working: https://thatrand0muser.github.io/
This is only implemented in sSCRT for now but any SNIP20 can be integrated.
Probably will do SEFI too before deploying to mainnet.
Would really love some feedback on this!
Here on the forum or if you want to DM me:
Telegram: Telegram: Contact @ThatRand0mUser