Mechanics of Loot Boxes
This is a self triggering lottery on Ethereum where users can participate by depositing ETH. Once 1 ETH jackpot is reached or surpassed (overflow style), it chooses a winner.
We use a VRF chainlink to generate a random number.
A custom requirement for the lottery was to ensure safety against overflow attacks (e.g where the jackpot sits at 0.9 ETH and the attacker deploys 99 ETH to improve their odds). We’ve done this as well, but won’t share how to avoid copycats!
Last updated