The totalFees variable can overflow causing denial-of-service (DoS).
The totalFees variable is declared as a uint64 variable. The maximum value that uint64 can hold is 18,446,744,073,709,551,615, which is equivalent to 18.446 ether. If the total fees collected exceed this value, it can lead to an overflow issue, potentially resulting in a denial-of-service (DoS) vulnerability within the withdrawFees function as the require statements will fail and the transfer of fees will not occur.
The 20% of the fees collected by feeAddress cannot be transferred forever.
Foundry
Declare the totalFees as a uint256 type.
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.