NEP5 Lottery platform
Smart contract hash:
NLP is the first purely decentralized smart contract lottery that lets users operate and maintain the lottery over their earnings. it aims to rectify the shortcomings in the traditional lottery in which the participation is limited and most funds are used in maintaining administrative costs.
- 1 FTX
- 0.1 CNEO
- 1 CGAS
1 to 39
Drawings are held every 12 hours
The Prize Pool for each drawing is calculated based on 85% of the ticket sales for that drawing. It is distributed according to the following chart depending on how many numbers are matched.
In Categories 2, 3, 4, the sum is divided by the number of winners in the category. If there are no winners, the sum is rolled over to the Jackpot pool for the next drawing. This means that the amount of winnings for matching 2, 3, 4 numbers is calculated by the equation: Ticket sales for one drawing * 0.85 * 0.25 / number of category winners
buyLotteryTicket(playerHash, walletType, ticketType, no1, no2, no3, no4, no5, referralHash)
byte playerHash - Player hash int walletType - If set 1, the contract transfer funds from player hash. If set 2, from users balance in the contract. int ticketType - 1 is FTX, 2 is CNEO, 3 is CGAS. int no1 - 1 to 39. int no2 - 1 to 39. int no3 - 1 to 39. int no4 - 1 to 39. int no5 - 1 to 39. byte referralHash (optional) - Who gets 5% of ticket price
byte casterHash - Who gets 5% of ticket sales of the game.
byte casterHash - Who gets 5% of the ticket price. int ticketNo (optional) - if not ticket no set, it verifies using the latest verification height.