In the PuppyRaffle.sol selectWinner(),the uint256fee is forcefully cast to uint64.
In the 2023-07-PoolTogether contest on C4, there is relevant and valid finding for this issue.
You can find it here:
https://code4rena.com/reports/2023-07-pooltogether#m-19-silent-overflow-could-alter-computation-when-calculating-the-vaultportion-in-the-prizepool-contract
This can potentially result in a silent overflow and may lead to totalFees goes wrong.
Add checks that the casting value is not greater than the uint64 type max value:
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.