Provides a signal to the keeper that harvest() should be called. The keeper will provide the estimated gas cost that they would pay to call harvest() and this function should use that estimate to make a determination if calling it is "worth it" for the keeper.
function harvestTrigger(uint256 callCost) public virtual view returns (bool)
Harvests the Strategy, recognizing any profits or losses and adjusting the Strategy's position.
function harvest() external virtual onlyKeepers
- Harvested(profit, loss, debtPayment, debtOutstanding)
Withdraws _amountNeeded to vault
function withdraw(uint256 _amountNeeded) external virtual returns (uint256 _loss)
Do anything necessary to prepare this Strategy for migration, such as transferring any reserve or LP tokens, CDPs, or other tokens or stores of value.
function prepareMigration(address _newStrategy) internal virtual
Transfers all want tokens from this strategy to a new strategy. Can only be called by the governance or the vault.
function migrate(address _newStrategy) external
Removes tokens from this Strategy that are not the type of tokens managed by this Strategy.
function sweep(address _token) external virtual onlyGovernance