Overflow possible in totalFees because of uint64 choice.
The variable totalFees is declared as a uint64 in the state variables section of the contract.
The maximum value for uint64 is 18446744073709551615, even if this looks like a big number, ETH has 18 decimals.
18446744073709551615 / 1e18 = 18446.744073709551615, meaning that if the totalFees ever reaches a value more than 18446.7440 ETH it will reset back to 0.
Medium because of the extreme fund loss for the protocol with a very low likelihood of ever happening.
Manual review.
Force selectWinner to revert in case totalFees ever overflows.
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.