Incorrect type casting or type mismatch while calculating total fees as total fees uint256 and fee is uint64.
TO calculate totalfees, totalFees = totalFees + uint64(fee); is used and as mentioned in summary it is a type mismatch, it can result in unintended behavior.
If the fees came out to be more than what uint64 can hold, totalfees can be miscalculated.
Manual Review
Use safemath libraries.
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.