Function: upgradeStrat()
This function facilitates the upgrade of a strategy.
Branches and code coverage
Intended branches
Assumed that the current strategy has no more funds or rewards to claim. Currently not explicitly checked.
Check whether the current implementation is set.
Check if the proposed time has passed.
Retire the current strategy.
Update the strategy to the new implementation.
Deposit funds into the new strategy. Performed in
earn
.
Negative behavior
Should not be callable by anyone other than the admin.