NEP5 Lottery platform
Smart contract hash:
ada839286d23cdfb42eb556461b9382d02b6e12f
Overview
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.
Pools
- FTX
- CNEO
- CGAS
Ticket prices
- 1 FTX
- 0.1 CNEO
- 1 CGAS
Lottery numbers
1 to 39
Drawing
Drawings are held every 12 hours
Distribution
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.
Number matched | Distribution |
---|---|
5 | 25% |
4 | 25% |
3 | 25% |
2 | 25% |
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
Methods
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
drawLottery(casterHash)
byte[] casterHash - Who gets 5% of ticket sales of the game.
verifyLotteryTicket(casterHash, ticketNo?)
byte[] casterHash - Who gets 5% of the ticket price.
int ticketNo (optional) - if not ticket no set, it verifies using the latest verification height.
claimLotteryWinningTicket(ticketNo?)
launchLottery()
getLotteryHeight()
getLotteryEntryHeight()
getLotteryVerificationHeight()
getLotteryWinnerHeight()
getLotteryClaimHeight()
getLotteryTicket(ticketNo)
getLotteryResult(gameNo)
getLotteryWinner(height)
getLotteryPool(currency, gameNo)
getLotteryUserBalance(ownerHash, currency)
getTimeLeft()
getLotteryCurrentJackpots()
getLotteryParticipation()
getLotteryVerification()
getLotteryClaim()
Links
Website - https://www.ftwcoin.io
Telegram - https://t.me/ftwcoin
Contact - info@ftwcoin.io