The setRouter function in StrategyOp.sol and StrategyArb.sol lacks a zero address validation check when setting a new router address.
The function allows setting the router address to address(0) without any validation.
If the router address is accidentally set to zero:
Token swapping functionality would be temporarily broken
Additional transaction would be needed to fix the issue
Add a zero address validation check at the beginning of the function:
This check will prevent potential operational issues and follows smart contract security best practices.
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.