Skip to content
On this page
  1. Key Takeaways
  2. What It Is
  3. The Intuition
  4. How the ERC-4626 Tokenized Vault Works
  5. Worked Example
  6. Common Mistakes
  7. Frequently Asked Questions
  8. Sources
  9. Disclaimer
← All concepts
Crypto & DeFiAdvanced6 min read

ERC-4626 Tokenized Vault: A Standard for Yield

The ERC-4626 tokenized vault standard defines a common interface for smart contracts that hold an underlying asset and issue shares to depositors. It standardizes how yield-bearing vaults handle deposits, withdrawals, and the share-to-asset exchange rate so other applications can plug in without custom code.

Key Takeaways

  • ERC-4626 is a shared interface for yield vaults that issue ERC-20 shares against a deposited asset.
  • Share price rises as the vault earns yield, because total assets grow while share supply holds steady.
  • The most common error is ignoring that previewed and executed conversion rates can differ.
  • A standard interface lets aggregators route capital across vaults without bespoke integration per protocol.

Key Takeaways

  • ERC-4626 is a shared interface for yield vaults that issue ERC-20 shares against a deposited asset.
  • Share price rises as the vault earns yield, because total assets grow while share supply holds steady.
  • The most common error is ignoring that previewed and executed conversion rates can differ.
  • A standard interface lets aggregators route capital across vaults without bespoke integration per protocol.

What It Is

ERC-4626 is the Ethereum tokenized vault standard, finalized in March 2022 and published as EIP-4626. It extends ERC-20: a vault's shares are themselves ERC-20 tokens. The vault holds one underlying ERC-20 asset and mints shares that represent a proportional claim on everything the vault holds.

The standard does not say how a vault earns yield. The strategy might be lending, staking, or running a market-making position. ERC-4626 only standardizes the accounting interface, so depositing, withdrawing, and reading the share price look identical across every compliant vault.

The Intuition

Before the standard, every yield protocol shipped its own vault interface. An aggregator that wanted to route funds across 10 protocols needed 10 custom integrations, each a chance for a costly bug. That fragmentation wasted developer effort and added risk.

ERC-4626 fixes the coordination problem the same way ERC-20 did for tokens. Agree on one interface for deposits, withdrawals, and conversions, and the whole network gains composability. A new vault that follows the rules can be slotted into existing dashboards, aggregators, and lending markets immediately. The shares are tradable ERC-20 tokens, so they can be used as collateral elsewhere too.

How the ERC-4626 Tokenized Vault Works

A vault tracks two quantities: totalAssets, the underlying it holds, and totalSupply, the shares outstanding. The exchange rate between them is the share price. The core functions are:

asset()                  -> the underlying ERC-20 token
totalAssets()            -> underlying held by the vault
convertToShares(assets)  -> shares for a given asset amount
convertToAssets(shares)  -> assets for a given share amount
deposit(assets, to)      -> add exact assets, get shares
mint(shares, to)         -> get exact shares, pay assets
withdraw(assets, ...)    -> take exact assets, burn shares
redeem(shares, ...)      -> burn exact shares, take assets

The conversion math is proportional:

shares = assets * totalSupply / totalAssets
assets = shares * totalAssets / totalSupply

When the vault earns yield, its underlying balance grows, so totalAssets rises while totalSupply stays the same. Each share now claims more underlying, meaning the share price went up. You realize the gain when you redeem shares for more assets than you put in. This design means a vault never has to mint reward tokens or push payouts to holders; the value simply accrues inside the share price, which keeps the accounting simple and the shares fully fungible.

The standard also requires preview functions, such as previewDeposit and previewRedeem, that estimate the result before you commit, plus maxDeposit and similar caps that tell you how much the vault will accept. Pairing deposit with mint, and withdraw with redeem, lets an integrator work in whichever unit is convenient: fix the exact assets in, or fix the exact shares out. That symmetry is part of why aggregators can route across many vaults with one code path.

Worked Example

A vault holds 1,000 USDC of underlying and has 1,000 shares outstanding, so the share price is 1.00. You deposit 100 USDC.

Your shares are 100 * 1000 / 1000 = 100 shares. The vault now holds 1,100 USDC backing 1,100 shares, still 1.00 per share.

Over a month the strategy earns 110 USDC of yield. Now totalAssets is 1,210 and totalSupply is still 1,100, so the share price is 1210 / 1100 = 1.10. You redeem your 100 shares and receive 100 * 1210 / 1100 = 110 USDC. Your 100 turned into 110, a 10 percent gain, while the share count never changed. The yield showed up entirely in the rising share price.

Common Mistakes

  1. Confusing previewed rates with guaranteed rates. Functions like previewRedeem estimate the outcome, but the actual rate at execution can differ if the vault state changes in between. Treat previews as estimates, not promises.

  2. Ignoring the inflation or donation attack on empty vaults. A freshly deployed vault with few shares can be manipulated by a large direct transfer that distorts the share price, harming the first real depositor. Reputable vaults add protections; unaudited ones may not.

  3. Assuming shares are risk-free yield. The share price can fall if the underlying strategy loses money. ERC-4626 standardizes accounting, not safety.

  4. Forgetting shares are ERC-20 with their own market. Vault shares can trade away from their underlying value on a secondary market. The redemption value and the trading price are not the same number.

  5. Overlooking fees baked into the strategy. Some vaults skim performance or management fees before yield reaches shareholders. The headline rate is not always what you keep.

Frequently Asked Questions

What is the ERC-4626 tokenized vault standard in simple terms? The ERC-4626 tokenized vault standard is a shared interface for yield vaults that take a deposit and give you shares in return. As the vault earns income, each share becomes worth more of the underlying asset.

How does the ERC-4626 standard affect investment decisions? Because share price reflects accrued yield, comparing share prices over time tells you a vault's real return net of in-vault fees. The standard also lets you check conversion functions before depositing so you know roughly what you will receive.

What is a real-world example of an ERC-4626 vault? A lending vault that accepts a stablecoin, lends it out, and issues shares is a typical case. Depositors earn interest as the vault's total assets grow and their shares appreciate.

How can investors use ERC-4626 vaults effectively? Read the preview and conversion functions before depositing, prefer audited vaults that defend against empty-vault manipulation, and check for management or performance fees. These steps separate sound vaults from risky ones.

How is ERC-4626 different from ERC-20? ERC-20 defines a plain fungible token. ERC-4626 builds on ERC-20 by adding a vault layer where the shares represent a claim on a pool of yield-earning assets, with a price that moves as the pool grows or shrinks.

Sources

  1. Ethereum Improvement Proposals. "EIP-4626: Tokenized Vaults." https://eips.ethereum.org/EIPS/eip-4626
  2. Ethereum.org. "ERC-4626 Tokenized Vault Standard." https://ethereum.org/en/developers/docs/standards/tokens/erc-4626/
  3. OpenZeppelin Docs. "ERC-4626." https://docs.openzeppelin.com/contracts/5.x/erc4626
  4. Ethereum.org. "Decentralized Finance (DeFi)." https://ethereum.org/en/defi/

Disclaimer

This article is educational content only and is not financial advice. Nothing here is a recommendation to buy, sell, or hold any security. Consult a licensed advisor before making investment decisions.

The IWP Substack

You understand the concept. Now see it applied.

The Investing With Purpose Substack turns ideas like this into research and risk-managed trade plans on real stocks, updated every week.

Read on Substack (opens in a new tab)

Related concepts