The useOracle
boolean state variable is declared but never used in the contract, and there's no function to modify it. Additionally, while nRoutes
tracks the number of routes, there's no upper bound or removal mechanism.
This creates potential issues:
Unused state variables increase gas costs
No way to remove or update existing routes
Unlimited route additions could lead to storage bloat
No validation of route parameters beyond access control
https://github.com/Cyfrin/2024-12-alchemix/blob/82798f4891e41959eef866bd1d4cb44fc1e26439/src/StrategyMainnet.sol#L17
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.