While the raffle is ongoing/continuous, the withdrawFees()
function will be DoS'ed.
The raffle will need to be paused to call this function successfully, due to the following line, which effectively makes it impossible to call because address(this).balance == uint256(totalFees)
can only ever be true between the end of current raffle, i.e. at end of winner selection function, and before the start of the next raffle, but the next raffle starts as soon as the winner selection function ends. So it effectively DoS the withdrawFees()
function.
Cant withdraw fees while raffles are ongoing.
VSC.
Add a function(s) to pause/unpause the raffle train...
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.