Router which was used before and now changed will have max approval of underlying tokens forever.
Router address is set in the constructor and given max approval of underlying tokens and when admin wants to change the router address, admin will call setRouter and given max approval to new router.
Here the approval of old router is not set to 0 which can be problematic if old router do malicious things. It is safe to set approval to 0 for old router.
Old router can get all of the underlying tokens.
Manual review
Protocol must reset aprroval to 0 when router is changed.
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.