ERC-4626 (Tokenized Vault Standard)

A standard interface for yield-bearing vaults, so deposits and share prices are readable the same way everywhere.

Basically

ERC-4626 is a shared set of rules for Ethereum vaults that hold tokens and can earn a return. It gives you the same way to put tokens in, take them out, and hold a token that shows your share.

Key Takeaways

  • ERC-4626 defines a standard API for tokenised vaults. Any protocol that accepts deposits and issues receipt tokens can conform to a single interface, replacing the fragmented vault interfaces used before 2022.
  • ERC-4626 extends ERC-20 with deposit, withdraw, mint, and redeem functions. Vault shares are themselves ERC-20 tokens, making them composable across DeFi protocols without custom adapter code.
  • Adoption spans hundreds of protocols including Yearn, Aave, Morpho, and Balancer. ERC-4626 has become the default interface for yield aggregators, lending markets, and automated vaults across the Ethereum ecosystem.

What Is ERC-4626?

ERC-4626 is an Ethereum token standard that provides a unified interface for tokenised yield-bearing vaults. Joey Santoro, t11s (transmissions11), Jet Jadeja, and Alberto Cuesta Cañada finalised the standard in March 2022. It extends the ERC-20 token standard, so every ERC-4626 vault share is also a valid ERC-20 token that you can transfer, trade, or use as collateral in other protocols.

Before ERC-4626, every vault protocol designed its own deposit and withdrawal interface, so Yearn's yVaults, Aave's aTokens, Compound's cTokens, and Balancer's BPTs all worked differently. Developers building aggregators, dashboards, or composable strategies had to write custom integration code for each vault type, and bugs in these adapters led to millions of dollars in losses. ERC-4626 solved this by giving the ecosystem a single ABI to build against.

How It Works

An ERC-4626 vault holds an underlying ERC-20 asset, such as USDC, DAI, or WETH, and issues shares representing your proportional claim on the vault's total assets. The total assets grow as the vault earns yield, while the share supply remains constant. Each share is therefore worth more over time.

Core Functions

The standard defines four mutative functions that handle all value flow into and out of the vault. These functions cover deposits, minting, withdrawals, and redemptions.

Deposit/mint and withdraw/redeem differ in which side of the conversion you specify. With deposit(), you say how many assets you want to put in and receive however many shares that buys, while with mint(), you say how many shares you want and pay whatever asset amount is required. The same logic applies in reverse for withdrawals.

Share-to-Asset Conversion

The exchange rate between shares and assets is determined by two view functions. These functions let you read the conversion rate without changing the vault.

The maths is straightforward: if a vault holds 1,000,000 USDC in total assets and has 900,000 shares outstanding, each share is worth approximately 1.111 USDC. You would receive about 111.1 USDC for redeeming 100 shares. The ratio changes over time as the vault accrues yield or incurs losses.

Preview and Limit Functions

ERC-4626 also requires preview functions that simulate operations without executing them, and limit functions that report maximum allowable operations. You can use them to check a transaction and its limits before acting.

These functions make vault integrations predictable. Your frontend or smart contract can check exact outputs before committing a transaction, eliminating guesswork.

Why Standardisation Matters

The fragmented interfaces before ERC-4626 show why standardisation was necessary. Consider a yield aggregator that wants to route deposits across five different lending protocols: without a standard, the aggregator team must handle each one separately.

ERC-4626 lets the same aggregator write one integration that works with any compliant vault. Its composability accelerates development, reduces audit surface area, and lowers the barrier for new protocols to plug into the existing ecosystem.

End users also benefit from the standard. Wallet interfaces can display balances and yields from any ERC-4626 vault without protocol-specific logic, while portfolio trackers automatically understand share-to-asset conversions. ERC-20 created the same network effect as the universal token standard: once tools support the interface, every new vault gets that tooling for free.

Yield Aggregation

Yield aggregators like Yearn V3 use ERC-4626 as their native vault interface. You deposit assets, receive vault shares, and the aggregator deploys capital across strategies to maximise returns; because the shares are ERC-20 compatible, you can deposit them into other ERC-4626 vaults to create nested yield strategies. An aggregator vault could hold shares of lending vaults, which themselves hold shares of liquidity pool vaults.

Lending Markets

Lending protocols use ERC-4626 to represent deposit positions. You receive vault shares that appreciate as borrowers pay interest when you supply USDC to a lending pool. Aave's wrapped aTokens and Morpho's MetaMorpho vaults both conform to ERC-4626, allowing their deposit tokens to integrate with the broader DeFi stack.

Liquid Staking

Liquid staking protocols issue ERC-4626 vault shares representing staked ETH plus accrued rewards. The vault's totalAssets() grows as staking rewards come in, increasing the share price. You hold a single token that automatically reflects your staking yield without needing to claim rewards.

Tokenised Real-World Assets

Tokenised Treasury bill vaults and other real-world asset products use ERC-4626 to represent yield-bearing positions in traditional financial instruments. The vault holds T-bills or money market fund shares, and the ERC-4626 interface exposes the yield to on-chain composability.

Restaking

Restaking protocols wrap staked positions in ERC-4626 vaults, allowing restaked assets to be used across additional security layers. The standard's accounting functions cleanly handle the multi-layered yield accrual that restaking introduces.

Inflation Attack

The most well-known vulnerability in ERC-4626 vaults is the inflation attack, also called the donation attack. It targets the first depositor in a vault.

Integer rounding in the share calculation when totalSupply is very small is the root cause. Several mitigations exist.

Rounding Direction

The ERC-4626 specification mandates specific rounding behaviour: conversions should round in favour of the vault and against the user. This means deposit() and mint() should round up, so you pay slightly more, while withdraw() and redeem() should round down, so you receive slightly less. Incorrect rounding opens arbitrage opportunities that can drain the vault.

Non-Standard Implementations

Not all vaults that claim ERC-4626 compliance fully implement the spec. Some vaults have withdrawal delays, lock-up periods, or fee structures that cause preview functions to return inaccurate estimates, so integrators should verify behaviour against the spec rather than assuming compliance from the interface alone. Formal verification and thorough testing remain essential for any contract interacting with external vaults.

Fee-on-Transfer Tokens

Vaults holding fee-on-transfer or rebasing tokens require special handling. The standard assumes that the amount of assets transferred matches the amount received by the vault, but tokens that take a fee on transfer break this assumption, causing totalAssets() to report incorrectly and share pricing to drift.

ERC-4626 and the Broader Ecosystem

ERC-4626 has become one of the most widely adopted Ethereum standards after ERC-20 and ERC-721 since its finalisation. Hundreds of vaults across lending, staking, yield farming, and asset management have adopted the interface. The standard has also influenced design on other chains, with the Solana and Cosmos ecosystems drawing on ERC-4626's vault abstraction concepts.

ERC-4626 is particularly relevant to the stablecoin ecosystem. Yield-bearing stablecoins like sDAI and other wrapped savings products use ERC-4626 vaults to distribute interest to holders: you deposit DAI into the DSR vault, receive sDAI shares, and the share price increases as the Dai Savings Rate accrues. This pattern enables stablecoins to carry yield natively, a capability that intersects with broader stablecoin yield infrastructure.

The glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.

0

← All 1876 glossary terms