YearnWETHStrategy
Overview
The YearnWETHStrategy contract is a strategy that supplies WETH into a Yearn V2 Vault to earn yield. It inherits from BaseYearnV2Strategy and provides specific initialization for Yearn's V2 WETH vault.
Constants
No additional constants defined in this contract.
State Variables
No additional state variables beyond those inherited from BaseYearnV2Strategy.
Functions
Initialization Functions
initialize
Initializes the strategy with Yearn V2 components and sets up trading limits.
Parameters:
_vault
: MaxApy vault address_keepers
: Array of keeper addresses_strategyName
: Name of the strategy_strategist
: Strategist address_yVault
: Yearn V2 vault address
Key Features:
Approves unlimited spending for Yearn vault
Sets minimum trade size to 0.01 tokens
Sets unlimited maximum trade size
Inherits all core functionality from BaseYearnV2Strategy
Last updated