uint256 to uint64 conversion can cause overflow
totalFees = totalFees + uint64(fee);
In this calculation, fee is cast to uint64, but fee is originally uint256. when a number larger than the range that can be represented by uint64 is entered, it causes an overflow and the calculation goes wrong
WithdrawFees() cannot be invoked because the balance of the Fee is collapsed, and it may not be possible to withdraw the Fee
Manual
Use the safecast library
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.