๐ŸŽŸ๏ธ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 โš ๏ธ
Token name
Stake Moonery Ticket
Token Symbol
TCKRY
Purpose Token
Proof of $MNRY Stake to our Lottery Pool
Liquidity
No
Transferable
Yes
ERC20
Yes
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:
1
function draw(uint256 randomNumber) public view returns (address)
Copied!
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.
Last modified 4mo ago
Copy link