Style issues that you may want to apply or reject, no impact on security. Grouping them together as one submission to reduce waste. Consider fixing or ignoring them, up to you.
There are hardcoded magic numbers, e.g. in Controller 10 is the initial value for maxStrategies. It would make code more readable and maintainable if you extract such numbers as constants.
In function reorderStrategies there two require statements:
require(manager.allowedStrategies(_strategy1), "!_strategy1");
require(manager.allowedStrategies(_strategy2), "!_strategy2");
that can be replaced to reuse an existing modifier:
onlyStrategy(_strategy1)
onlyStrategy(_strategy2)
Handle
pauliax
Vulnerability details
Impact
Style issues that you may want to apply or reject, no impact on security. Grouping them together as one submission to reduce waste. Consider fixing or ignoring them, up to you.
There are hardcoded magic numbers, e.g. in Controller 10 is the initial value for maxStrategies. It would make code more readable and maintainable if you extract such numbers as constants.
In function reorderStrategies there two require statements: require(manager.allowedStrategies(_strategy1), "!_strategy1"); require(manager.allowedStrategies(_strategy2), "!_strategy2");
that can be replaced to reuse an existing modifier: onlyStrategy(_strategy1) onlyStrategy(_strategy2)