🎟️Staked Moonery Ticket $TCKRY
When users deposit $MNRY to our Staked Lottery Pool, they receive an ERC20 compatible ticket. Contract address.
⚠️ ALERT: NEVER SEND YOUR FUNDS DIRECTLY TO AN ADDRESS ⚠️
Stake Moonery Ticket
Proof of $MNRY Stake to our Lottery Pool
The contract organizes the balances into a sum tree data structure so that each address holds a "range" of tokens. This number can be used as an index within that range, and the holder of the tokens in that range is selected:
function draw(uint256 randomNumber) public view returns (address)
The randomNumber will be used as a token index into a specialized data structure that stores the user balances. The randomNumber is constrained to the token supply, and modulo bias is corrected.
The returned address is the user who holds the token index corresponding to the random number.