https://github.com/Cyfrin/2024-12-alchemix/blob/82798f4891e41959eef866bd1d4cb44fc1e26439/src/StrategyMainnet.sol#L43
The router address on Mainnet is hardcoded, making it impossible to update the router dynamically without redeploying the contract. In contrast, Arbitrum and Optimism contracts uses a setRouter
function to allow flexible updates to the router address.
Mainnet relies on a fixed router address which could result in operational challenges if the router becomes outdated if there's a need for an upgrade.
Manual Review
Add a setRouter
function for dynamic router updates.
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.