Contents

Chapter 1

vault-fee-module

Composable fee system for ERC-4626 vaults — management, performance, entry, and exit fees.

Price: $7.99 | Store: vault-forge | Product #3


Chapter 2

Overview

FeeModule is an abstract Solidity contract that adds a complete, production-ready fee system to any ERC-4626 vault. Inherit it, configure your fees, and call the collection hooks in your vault's lifecycle functions.

Supported Fee Types

Fee TypeMechanismDefaultCap
ManagementAnnual bps charged via share inflation (dilutive minting)200 bps (2%)500 bps (5%)
PerformanceBps on yield above high-water mark2000 bps (20%)5000 bps (50%)
EntryBps deducted from deposit amounts0 bps200 bps (2%)
ExitBps deducted from withdrawal amounts0 bps200 bps (2%)

How Fees Work

Management Fee — Charged pro-rata based on time elapsed since last collection. New shares are minted to the fee recipient, diluting all holders proportionally. This follows Yearn's canonical streaming fee pattern.

feeShares = totalSupply * managementFeeBps * elapsed / (365 days * 10_000)

Performance Fee — Charged only on profit above the high-water mark (HWM). When totalAssets > highWaterMark, the profit is totalAssets - HWM, and the fee is a percentage of that profit. The HWM updates after each collection.

feeAssets = profit * performanceFeeBps / 10_000

Entry Fee — A flat percentage deducted from deposit amounts before shares are minted. The fee stays in the vault (increasing share value) or is transferred to the fee recipient.

Exit Fee — A flat percentage deducted from withdrawal amounts before assets are sent. Discourages short-term speculation.


Chapter 3
🔒 Available in full product

Architecture

Chapter 4
🔒 Available in full product

Files

You’ve reached the end of the free preview

Get the full Vault Fee Module and unlock everything.

All Chapters

Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.

Full Tool Suite

Access all interactive tools with complete data, all workload profiles, and the full scenario library.

Source Files

Downloadable source code, configuration files, and working examples from every chapter.

Lifetime Updates

Free updates for life. Every new chapter, tool, and improvement included.

Buy Now — $9 →
📦 Free sample included — download another copy for the full product.
Vault Fee Module v1.0.0 — Free Preview