addRoute
function allows the addition of new routes for Curve swaps but lacks a check to prevent duplicate routes. This could lead to redundant or conflicting routes being added, increasing gas usage and potentially causing unintended behavior during swaps.https://github.com/Cyfrin/2024-12-alchemix/blob/main/src/StrategyMainnet.sol#L56
Manual
Add a check to ensure that the _route
being added does not already exist:
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.