The constructor function does not check that the entrance fee is more than zero. This allows contestants to enter the raffle for FREE. The effect is that winners who enter for free stand to win after risking nothing. It can
The constructor function does not check that the entrance fee is more than zero. This allows contestants to enter the raffle for FREE.
POC
Run this test:
And run it as:
Test results:
Winners who enter for free stand to win the price NFT after staking NOTHING.
The feeReceipient will receive no fee when selectWinner + withdrawFee is called since the contract's Ether balance will be zero.
Manual review
The constructor function should check that the entrance fee is more than zero
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.