An abstract contract that inherits from Strategy. All Vesper Earn pools are implementations of the Earn contract.
Accounting total stable coin earned after fee. This amount is not reported to the pool.
Update update period of distribution of earning done in one rebalance
_dripPeriod in seconds
Approves EarnDrip' Grow token to spend dripToken
This is an abstract contract that implements key functionality for all strategies. For example, the AaveLeverageStrategy contract inherits from Strategy and AaveCore.
Add given address in keepers list.
_keeperAddress
address
keeper address to add.
Return list of keepers
Migrate all asset and vault ownership,if any, to new strategy
_beforeMigration hook can be implemented in child strategy to do extra steps.
_newStrategy
address
Address of new strategy
Remove given address from keepers list.
_keeperAddress
address
keeper address to remove.
Update fee collector
_feeCollector
address
fee collector address
Update swap manager address
_swapManager
address
swap manager address
Approve all required tokens
Withdraw collateral token from lending pool.
_amount
uint256
Amount of collateral token
Rebalance profit, loss and investment of this strategy
sweep given token to feeCollector of strategy
_fromToken
address
token address to sweep
Returns address of token correspond to collateral token
Calculate total value of asset under management
Report total value in collateral token
Calculate total value of asset under management (in real-time)
Report total value in collateral token
Check whether given token is reserved or not. Reserved tokens are not allowed to sweep.