This vulnerability concerns the interaction between two variables, fee and totalFees, one of which is of type uint256 and the other of type uint64. This type mismatch may lead to issues if the value stored in uint256 fee exceeds the maximum value representable by uint64.
If the value stored in uint256 fee exceeds the maximum value that can be represented by uint64, the truncation that occurs when it is converted to uint64 may lead to overflow and incorrect accounting of fees. This can result in loss of data or inaccurate calculations of fees.
manual review
Recommended to use consistent data types for variables related to fees. Either both fee and totalFees should be of type uint256 or both should be of type uint64. The choice between uint256 and uint64 should be based on the expected range of values and gas efficiency.
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.