The _initStrategy
function within the StrategyMainnet
contract hardcodes the address for the ICurveRouterNG
router. This approach introduces potential risks and reduces flexibility in adapting to infrastructure changes or security vulnerabilities in the Curve Router.
Code Snippet:
If the hardcoded Curve Router address becomes deprecated, compromised, or incorrect, the strategy's functionality may break, requiring a full redeployment of the contract.
There is no mechanism to validate or update the hardcoded address post-deployment, which limits the adaptability of the contract.
A compromised or deprecated router could expose the strategy to potential exploits or loss of funds.
VSCODE, Manual Review
Introduce configurability and validation mechanisms for the Curve Router address.
Configurable Router Address: Add a function to allow the management to update the router address with proper access control:
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.