Description:
When accumulating fees, due to the fact that totalFees
is uint64, both arguments should be uint64
. Thats why in the code there is a downcast from uint256
to unit64
, which is the reason the contract loses fees.
Impact:
Makes it less incentivising for the contract owner/owner of fee address.
Tools used:
foundry, manual
Proof of Concept:
Recommended Mitigation:
Make totalFees type uint256 so you dont need to downcast to uint64
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.