The addRoute function in StrategyMainnet.sol allows adding new routes to be used in Curve Router swaps. However, there is no corresponding removeRoute function to delete or deactivate routes when they are no longer needed or become invalid. This lack of flexibility can lead to issues such as retaining outdated or insecure routes, which can increase risk and operational complexity.
The addRoute function increments the nRoutes counter and assigns the provided route, swap parameters, and pools to their respective mappings.
Without a removeRoute function, there is no way to delete specific routes when they are no longer valid, or if they were added incorrectly.
Accumulation of unused or invalid routes in the contract.
Increased complexity in managing valid routes.
Retained routes may become vulnerable if they reference outdated or compromised pools.
Manual Review.
Introduce a removeRoute function to allow the removal of specific routes by their index.
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.