Section 13 of 18
Build
+20 LynxVault: Locked Profit Degradation (just-in-time defense)
What You Are Building
Yearn V2's signature security mechanism. After a strategy reports gain, the gain doesn't immediately become withdrawable, it linearly unlocks over a configurable period (default ~6 hours). New deposits during the window pay the gross share price (so they don't profit from the locked portion); withdrawals see the net price (locked portion excluded). The asymmetry is the defense.
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 20 Lynx
Zealynx Academy is free. Track your progress, earn Lynx, and climb the leaderboard.
Sign up free to continueAlready have an account? Log in