Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 717 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 717 Bytes

Distributed Lottery Challenge

Instructions

  1. Add participants to the system
  • Each player must pay 4 tRIF(ERC20) to enter
  • Each account can only participate once.
  • The list of participants should be reset after the lottery ends
  1. Only allow owner to start/end lottery manually
  • Ownership of the Lottery contract should be transferable.
  1. users will only be able to join if the lottery has been started.
  2. Random choice of winner when Lottery is ended
  • Once the lottery is ended, the sum of all the tRIF tokens should be awarded to the randomly picked winner.
  1. Test implementation using hardhat ethers
  2. It should be possible in the future to query past winners