Total assets
totalAssets() is the sum of:
- Idle balance. The deposit asset held by the vault.
- Each strategy position. The vault’s shares in that strategy, converted to the deposit asset through the strategy’s own
convertToAssets.
What moves the share price
- Strategy yield. Interest and fees earned inside a strategy raise that position’s value.
- Compounded rewards. Incentive tokens claimed, swapped into the deposit asset and returned to the vault raise the idle balance.
- Fees. Fee shares minted to your fee recipient dilute every holder in proportion, so the share price your customer sees is net of fees.
Fees
All three fees are paid in vault shares minted to the fee recipient. No fee is paid by withdrawing assets from a strategy.
When harvest runs. The vault harvests before every deposit, mint, withdrawal, redemption, allocation and fee change, and the keeper can also call
harvest(). Each harvest mints the fees owed since the last checkpoint, then records a new checkpoint of the time and total assets. Deposits and withdrawals also update the checkpoint, so they never count as performance.
How the amounts are set. The management fee accrues on the lower of the last checkpoint’s assets and current assets, for the time elapsed. The performance fee is the configured share of the gain above the last checkpoint. If assets fall, no performance fee is charged for that period.
Previews include pending fees. previewDeposit, previewMint, previewWithdraw, previewRedeem, maxWithdraw and maxRedeem price against the share supply after fees owed are minted, so a quote matches what the transaction does.
Protection against share inflation
The vault uses virtual shares and a six-decimal offset between assets and shares. This blocks the inflation attack where a first depositor donates assets to round later depositors down to zero shares.Next steps
Allocation & rebalancing
How capital moves between idle and strategies.
Monetization
How vault fees fit with your other Earn fees.

