Section 16 of 18
Build
+15 LynxVault: Performance Fee, Management Fee, Fee-as-Share-Mint
What You Are Building
The fee accounting layer. Three fees on every successful report():
- Vault management fee: BPS per year, accrued continuously on
totalDebt(deployed capital only, idle isn't being managed). Paid torewards. - Vault performance fee: BPS of the report's
gain. Paid torewards. - Per-strategy performance fee: BPS of
gain, set per-strategy. Paid to the strategy address itself. (The strategist sweeps from there.)
All three are paid by minting new vault shares to the recipient. NOT by transferring underlying out of the vault. The cost is borne by existing depositors via dilution. No underlying ever leaves the vault on a fee.
This section overrides the _assessFees stub from section 11.
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