The setRouter function allows a manager to change the router (a critical component in the protocol). Whenever a new router is set, it gives that new router permission to access all tokens but does not remove the approval for the old router.
The setRouter function in StrategyArb.sol
and StrategyOp.sol
updates the protocol’s router and grants the new router unlimited token approval.
• The function does not reset the token approval for the old router, leaving its permission intact.
• If the old router is exploited or hacked after being replaced, it can still access all tokens.
Complete loss of all underlying tokens authorized to the old router.
vscode
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.