DeFiFoundrySolidity
16,653 OP
View results
Submission Details
Severity: low
Valid

StrategyMainnet can't change the router address

Summary

StrategyMainnet can't change the router address bt the other 2 strategy can

Vulnerability Details

Router address is hardcoded and the others 2 strategy can set the router so if somehow the router address change the strategy can't be used

Impact

strategy can't be used if address in router change in StrategyMainnet

Tools Used

  • vs code

Recommendations

Consider adding

function setRouter(address _router) external onlyManagement {
router = _router;
underlying.safeApprove(router, type(uint256).max);
}

to StrateguMainnet

Updates

Appeal created

inallhonesty Lead Judge 5 months ago
Submission Judgement Published
Validated
Assigned finding tags:

Cannot Set A New Router In `StrategyMainnet.sol`

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.