Contents

Chapter 1

ERC-4626 Base Vault

Production-ready ERC-4626 yield vault with management and performance fee collection.

Product 1 of the vault-forge store. Part of the CryptoForge DeFi toolkit.

Price: $9.99 | License: MIT | Solidity: ^0.8.24 | Framework: Foundry


Chapter 2

Overview

CryptoForgeVault is a battle-tested ERC-4626 yield vault that delegates capital to a single yield strategy while collecting management and performance fees via dilutive share minting. Built on OpenZeppelin v5 with defense-in-depth security patterns.

Key Features

  • ERC-4626 compliant — Standard vault interface, works with any aggregator or UI
  • Management fee — Annualized BPS fee charged via share dilution on each harvest
  • Performance fee — BPS fee on profit above a high-water mark
  • 48-hour timelock — All fee and strategy changes are delayed, giving depositors an exit window
  • Virtual shares — _decimalsOffset=6 creates 1e6 virtual shares, making inflation/donation attacks uneconomical
  • Emergency pause — Deposits halted, withdrawals always open
  • Ownable2Step — Two-step ownership transfer prevents accidental loss of admin control
  • ReentrancyGuard + CEI — All value-transfer functions are reentrant-safe
Chapter 3
🔒 Available in full product

Architecture

Chapter 4
🔒 Available in full product

Fee Model

You’ve reached the end of the free preview

Get the full Erc4626 Base Vault 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 — $10 →
📦 Free sample included — download another copy for the full product.
Erc4626 Base Vault v1.0.0 — Free Preview