Can't withdraw fees if malicious attacker send PuppyRaffle ETH by selfdestruct
If malicious attacker send PuppyRaffle ETH by selfdestruct, the address(this).balance == uint256(totalFees) will always be invalid. The withdrawFees() function will always revert.
The fees can't withdraw and will be locked in the contract
manual
foundry
It is suggested to replace with require(address(this).balance >= uint256(totalFees), "PuppyRaffle: There are currently players active!");
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.