Hash and Price Set
A hash containing a salt number is submitted and the price for a single ticket is set by the onFire team. After the hash and price are set, tickets are open for sale.
Tickets Open for Purchase
Tickets are open for purchase, (about) $1. There is no limit on the amount of tickets but be aware only 30% of the pot will be used for the prize.
Request Random Number
A user requests a random number to pick the winner and gets the price of a ticket. Excess gas is consumed by oraclize and request button has 30 min cool down.
Hash Reveal
The number secured in the hash is revealed. The revealed number from the hash will be used to salt the random number to protect from bad actors.
Burn
The burn function caller and Request Random function caller get the price of a ticket, onFire team gets 1%, and main winner gets 30%. Remaining coins are burned.