Please connect to a Wallet
This smart contract is a lottery, everyone can deposit ETH, which should be greater than 0.01 ETH. In each round, the contract will select a winner, and the winner will receive this contract's ETH balance.
Each round is 30 seconds, so you can quickly test if the link is enough in the chainlink service.
This project currently supports Goeril,and the feature is like Pooltogether
For the contract's implementation, two points should be give more attentions.
  • Number 1 is selecting the winner randomly, this contract uses Chainlink Verifiable Randomnesto get the random number. You can check the below address in goeril for more details.
    vrfcoordinatorv2: 0x2Ca8E0C643bDe4C2E08ab1fA0da3401AdAD7734D.
  • Number 2 is how to start each round. There should be a service that will activate the game. This contract usesChainlink Automationto judge whether it should start a new round. And this contract should register in automation.chain.linkand then start the monitoring.