This is an example solidity contract that sells lottery tickets for 0.01 Ether and generates a random number via random.org once a day to determine a winner. 5% of ticket sales would go to a charitable address, with 1% going to another contract that token holders would be able to withdraw from, and 1% of ticket sales going to the contract owner - the remaining 93% of ticket sales in Ether would be sent to that days lottery winner. Oraclize is used to call random.org and generate a random number that determines the winner.
-
Notifications
You must be signed in to change notification settings - Fork 0
wanshun123/eth-lottery
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Example solidity contract that sells lottery tickets for 0.01 Ether and generates a random number via random.org once a day to determine a winner .
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published