Open BanzaiTokyo opened 5 months ago
Looks good
Some adds:
Hey @BanzaiTokyo I made some tweaks to the lottery smart contract spec to improve the structure and clarity. I reorganized the roles section, and restructured the user roles to show the hierarchy better.
I also added a "Data" section for key variables and converted the features into a checklist format. Lastly, I included a "Future Enhancements" section for potential improvements.
The goal is to make the spec more organized and developer-friendly. Let me know if you have any questions or feedback! Cheers.
closingDate
: The date and time when the lottery stops accepting new tickets.prizePool
: The total amount of Ether in the prize pool, incremented with each ticket purchase.ticketOwners
: An array of addresses representing ticket owners, where an address can appear multiple times based on the number of tickets purchased.winner
: The address of the participant chosen as the winner during the draw.ticketOwners
array, ensuring that the probability of winning corresponds to the number of tickets purchased.
Roles
Fields
Features