Skip to content

sergio-jara/lottery-job-quiz

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published