withdrawFees
function reverts when totalFees == 0
, preventing the owner from calling this function and potentially causing confusion about the contract state.The withdrawFees
function is designed to allow the owner to withdraw accumulated protocol fees
The function includes a check that reverts if totalFees == 0
, which prevents the owner from calling this function when no fees have been collected, even for testing or verification purposes
Likelihood:
Owner may want to call this function for testing or verification purposes
Function appears broken to users when no fees have been collected
Impact:
Owner cannot test fee withdrawal functionality
Confusing user experience with unclear error messages
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.