Add Strategy
To deploy capital to a new external yield source, the strategy must first be registered with the vault through the Controller.
- The Developer calls
Controller.strategyAdd(vault, strategy). - The Controller checks that the vault is registered.
- The Controller checks that the strategy is not already registered for the vault.
- The Controller verifies that
IStrategy(strategy).asset() == IERC4626(vault).asset(). - The Controller verifies that
IStrategy(strategy).receiver() == vault. - The strategy is appended to the vault's registered strategy list.