Section 9 of 18

Build
+15 Lynx

Vault: addStrategy, revokeStrategy, withdrawalQueue

What You Are Building

The strategy registry. Governance adds strategies via addStrategy(), sets per-strategy parameters (debtRatio, minDebtPerHarvest, maxDebtPerHarvest, performanceFee), and orders them in the withdrawalQueue. Sections 10 and 11 then drive capital allocation between them.

This section also includes initVault(), the one-time initializer that seeds token, share-token metadata, and roles. Section 17 will wrap this in the deployable Vault's actual constructor; for testing sections 9-16 in isolation, the test harness calls initVault once after deploying the bare contract.

Your Code

Solution.sol
Solidity
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 continue

Already have an account? Log in