Section 16 of 18

Build
+15 Lynx

Vault: Performance Fee, Management Fee, Fee-as-Share-Mint

What You Are Building

The fee accounting layer. Three fees on every successful report():

  1. Vault management fee: BPS per year, accrued continuously on totalDebt (deployed capital only, idle isn't being managed). Paid to rewards.
  2. Vault performance fee: BPS of the report's gain. Paid to rewards.
  3. 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
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