Motivation
The key goal of any blockchain-based product is to bring mass adoption to the network and solutions offered by it. While some chains try to create a problem which can be solved by their tech, others implement solutions to tasks that are at hand. The technology itself can be pretty tricky, especially if it is a new and yet-in-development one. And it might take a lot of time before users come pouring into the community. Offer them something easy to learn and use - and you will have the community blossoming. This is the way. This is our way.
Having a project that can be used by everyone on day one, with clear mechanics and a prize on the end is the best tool to be used for promotion. Users will play with the product and will learn about its native blockchain as a bonus. Free TON is missing such projects. Just ask yourself - what can you do here? What will users do with Surf besides staking? Something relaxing but exciting will definitely do the trick.
Description
Crystal Fever is a truly decentralized blockchain lottery. The lottery works in 24 hour cycles - starting from 00:00 UTC to 23:00 UTC users can buy tickets, the winning number is picked after the selling is closed, winners are matched and the prizes are sent. Everything is done completely automatically. The unused jackpot is then transferred to the next round. The new cycle starts again at 00:00 UTC.
Rules for winning are simple: the winning number consists of six digits, matching them from left to right gives you the prize. The more numbers match (in a row), the higher the percentage of jackpoint you get. The prize pool is divided by the following model: matches first 1 - 2%, matches first 2 - 3%, matches first 3 - 5%, matches first 4 - 10%, matches first 5 - 20%, matches 6 - 50%, developer fund - 10%.
DeBot address TON Surf. Blockchain Communicator: data browser, crypto wallet and private chat (opens in Surf)
Technology
When we said that Crystal Fever is a truly decentralized lottery, we really meant that. As it is using Free TON DeBot technology, it is not limited nor controlled by any ISPs, web domains and whatsoever. When creating the project we wanted to use as many different solutions that run on Free TON as possible within the concept.
DeBot
Crystal Fever lottery is a product that is completely operated through DeBot - both automatic commands and manual input. Key features:
- ticket purchase
- ticket history
- lottery history (including bought tickets)
Randomizing
We use 2 different randomizers in our project. Such an approach makes it impossible to cheat (both for the developers and the players) trying to match the ticket with the winning number.
Winning number (6 digits) is created with the help of an on-chain randomizer. As it lives only in 1 current block, it’s impossible to mine its results anyhow. The generator uses rnd.shuffle() and rnd.next() Solidity commands and is open-source (GitHub - SolderingArmor/crystal-lottery-contracts), thus, anybody can check that it is truly random and the winning combination used in the Lottery is the combination produced by randomizer.
The tickets (6 digit number), on the other hand, are created off-chain with Free TON SDK with added salt. There are several explanations for it. The on-chain randomizer consumes tokens for its work, which will add additional expenses. Imagine a thousand tickets? And now ten and more thousands? The usage of salt for creation of every ticket adds an additional randomness layer to the results (even if you perform generation several times in a row).
dApp server features
- winners auto-calculation and payment
- jackpot auto-transfer
Setcode
We are not using the setcode() function in any Lottery contracts except DeBot (to preserve the DeBot address after update).
Bonus
Crystal Fever lottery logo (image) is stored on-chain.
Statistics (as per 20.09.2021)
Jackpot - 2 759 TON
Lottery rounds - 24
Unique users/wallets - 84
Total tickets bought - 330
Tickets won - 29
Prizes paid - 346 TON
Stage #1 - warm-up
The warm stage is aimed to play-test the solution, prepare lottery code for formal verification and study the basis for the massive launch world-wide.
Planned activities
- create of the landing page (dApp) to receive paid and organic traffic
- code study and preparation for formal verification
- NFT drops mechanics formulation
- DAO token mechanics study and formulation
- pilot marketing campaign to measure the interest of the crypto-audience (outside FT community)
Token request
Planned activities - 50 000 TON
Jackpot - 30 000 TON
The jackpot will be replenished by 1 000 TON on a daily basis to keep its growth correlated with the growth of the user base.
Multisig wallet
A multisig 2/2 wallet has been setup to receive the funds, with the following custodians:
- Michael Kabanov (@michael_kabanov): d6fedea7c18e66b7e4322877b74adf8495927654b3b55a9768ef065c5532046c
- Anton Platonov (@SuperArmor):
e1442b23187b5ab26b48b30d7d4b63d0c191713fc5acd7d3826672044bcd1e98
Multisig address
0:1b23a06edd6706bbec0c2dabb2a92662c0ba0c4668c617e39b57ba6745a46c62