Function: upgradeTo(string _strategyName, address _newImplementation)
Allows upgrading the implementation of a strategy.
Inputs
_strategyNameControl: Fully controlled by the caller.
Constraints: None. Should ensure that
strategyNameexists in theinstancesmapping.Impact: The name of the strategy to upgrade.
_newImplementationControl: Fully controlled by the caller.
Constraints: None.
Impact: The new implementation address.
Branches and code coverage
Intended branches
Should check that the
_newImplementationis a valid contract address.Should check that an instance of the
_strategyNameexists.Upgrades the instance to the new implementation.
Negative behavior
Assumes that the current implementation is not the same as the new implementation.
Should not be callable by anyone other than the owner.