erc4626-patterns

Community

Build robust ERC-4626 vaults with proven patterns

Authorccashwell
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Design and implement ERC-4626 compliant tokenized vaults that correctly manage deposits, withdrawals, and share calculations, while ensuring secure accounting and protection against common edge-case attacks.

Core Features & Use Cases

  • ERC-4626 interface coverage: asset(), totalAssets(), deposit/mint/withdraw/redeem, and preview functions.
  • Secure share math with rounding rules that favor the vault, including first-depositor attack mitigations.
  • Yield strategy integration patterns and ecosystem interoperability with OpenZeppelin-style vaults.
  • Use cases include building yield-bearing vaults for DeFi protocols, custodial vaults, and asset-backed tokenization workflows.

Quick Start

Apply ERC-4626 vault patterns to implement secure, compliant yield-bearing vaults.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: erc4626-patterns
Download link: https://github.com/ccashwell/evm-cortex/archive/main.zip#erc4626-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.