Section 8 of 18
Build
+15 LynxBaseStrategy: Storage, Modifiers, Abstract Methods
What You Are Building
The abstract parent contract that every concrete Yearn V2 strategy inherits from. BaseStrategy holds the strategy's role state (governance, strategist, keeper), the vault binding, the emergencyExit flag, and the access modifiers. It also declares the abstract methods that subclasses (e.g. StrategyAaveLender, StrategyCurveStableLP) must implement.
This is the start of the second inheritance chain in the module. The Vault chain runs sections 2-6, 9-11, 13-14, 16-17. The Strategy chain is section 8 here, then section 15 (harvest, tend).
Your Code
Solution.sol
Loading editor...
Requirements
Write your implementation, then click Run Tests. Tests execute on the server.
Sign up free — keep reading + earn 15 Lynx
Zealynx Academy is free. Track your progress, earn Lynx, and climb the leaderboard.
Sign up free to continueAlready have an account? Log in