A contract to conduct lottery and randomly select a winner.
Users can participate in the lottery by paying an entry fee.
The contract selects multiple winners
Position | Prize Percentage |
---|---|
1st | 20% |
2nd | 15% |
3rd | 10% |
4th to 10th | 8% |
If a raffle has minimum 10 players, then anyone can pick the winners by paying a fee of >=4% of the total pool of the raffle.
- Run
make install
to import all the required packages. - Run
make build
to compile the contracts.
- Run
make test-it
to run all the tests. - Run
make test-v
to run tests with logs. - Run
make coverage-report
to get a report of missing points in the tests in coverage.md.