NFT Lottery on Solana

The user has to first submit SOL worth $1 at that current moment, which is checked against the live price feeds of SOL/USD being fetched by pyth-network/Chainlink. Winners will charge 65%, a major part of the rest will be distributed as charity. Depending on the matched number count, we again split 65% to each winner. 3 match: they will get the ticket price back. 4 matched: these users will receive 2% / N of the total lottery amount. 5 matched: these users will receive 5% / N of the total lottery amount. The final winners who matched all numbers will have the rest 65% - low tier prizes. All "low tier" prizes are subtracted from the main prize pool of 65%. Thus, if no low tier winners, then they will get a full 65%.

The Randomisation of the winning lottery numbers is done with the help of VRFs from Chainlink itself.

 

20 Jan 2022

Keywords
Blockchain
Solana
Rust
Smart Contracts
Programs
Lottery
NFT
ERC20
ERC721
ChainLink
Pyth-Network

Fueler top Icons

We are not just another social platform

We aspire to become a platform that inspire you to create and helps you become self reliant with your skills and proof of work.

CTA msg box Fueler