collectFee sweeps the contract's WETH to the collector, but calls transfer without checking the boolean return value. With a WETH-like token that returns false on failure instead of reverting, the sweep can silently no-op while the transaction still succeeds.
Likelihood: Low
Only manifests with a non-standard token that returns false rather than reverting; the collector is a trusted role.
Impact: Low
Fees can silently fail to move and remain stranded in the contract with no error signal. Robustness gap; flagged by the compiler.
forge build reports the issue on the exact line:
(No runtime test is included; a repro requires a deliberately misbehaving WETH mock. The defect is the missing return-value check, evidenced by the compiler lint on the exact line.)
Use the already-imported SafeERC20:
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.