Fee overflow can occur when there are sufficient participants in a raffle (for a given entranceFee) as the fee is calculated as a uint256 and then cast to a uint64. This compiler version does not automatically revert on over/underflow.
A proof of concept is presented below. In this instance, only 93 players need to enter the raffle for overflow to occur when the entrance fee is 1 ether.
Loss of partial funds. The amount collected from users is split between fees and the prize pool. A partial amount (dependent on extend of overflow) of the fee funds will be lost.
Foundry.
Consider using a larger unsigned integer, especially if you think this raffle will be successful.
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.