yield-vault-patterns

Community

ERC-4626 vault patterns for robust yields.

Authorccashwell
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Implementing secure, efficient ERC-4626 vaults requires solid patterns for share math, rounding, and security against early-depositor exploits.

Core Features & Use Cases

  • Complete ERC-4626 pattern: deposit/mint/withdraw/redeem flows with vault-favorable rounding rules.
  • Attack mitigation: virtual shares/assets and safe initialization to prevent first-depositor attacks.
  • Use Case: Build yield-bearing vaults and simple yield strategies with automated share accounting.

Quick Start

Deploy the yield-vault-patterns template with a test asset and run a basic deposit/withdraw scenario to observe share-price updates.

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: yield-vault-patterns
Download link: https://github.com/ccashwell/evm-cortex/archive/main.zip#yield-vault-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.