if a user manually sends some either at this smart contract by calling selfDestruct on another contract, this messes with the account of the fees collected in comparison to the current contract balance making it impossible for the collected fees to be withdrawn from the protocol. In other words, getting the funds locked in the smart contract.
if a user manually sends some ether at this smart contract by calling selfDestruct on another contract, this messes with the accounting of the fees collected in comparison to the current contract balance making it impossible for the collected fees to be withdrawn from the protocol.
In other words, getting the collected fees locked in the smart contract.
Note: Because of this very same strict equality check and the fact that, the determination of the winnerIndex and prizePool in PuppyRaffle::selectWinner does not take into account that there might have been refunded users, the final ether balance left in the smart contract is not the same as PuppyRaffle::totalFees leading to the same effects explained above.
Manual review
Determine if there is an active raffle using the PuppyRaffle::players array length instead.
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.