What is ERC-4626? The tokenized vault standard

What the ERC-4626 vault standard defines, how shares and assets convert, what it leaves to each vault, and what to check before you deposit.

Published · Updated · Last verified · Tools · Lending

ERC-4626 is the Ethereum standard for tokenized vaults: a contract takes one ERC-20 asset, issues shares, and redeems those shares for a growing or shrinking amount of the asset. It fixes the function names and rounding rules. It does not say where the money goes or whether the vault is safe.

That split is the point most first-time depositors miss. Two vaults can share the same interface and carry opposite risk, much as two funds can share a fund administrator and hold very different books. This guide reads the standard itself and shows what it guarantees and what it leaves to each implementation.

What is ERC-4626?

ERC-4626 is a token standard that gives every yield-bearing vault the same deposit and withdrawal interface. The ERC-4626 specification was created in December 2021 and carries Final status.

The authors wrote it because lending markets and yield aggregators exposed vaults in different ways. Each integrator had to write a custom adapter for each one, which the proposal calls error prone. One shared interface lets a wallet or another protocol plug into any compliant vault with the same code.

A vault share is an ERC-20 token that represents a claim on a fraction of the vault’s underlying holdings. The spec requires shares to implement ERC-20 and its metadata extension, so they can be held and used as collateral like any other token, unless the vault chooses to block transfers.

How do ERC-4626 shares and assets work?

A depositor sends the underlying asset and receives shares at the vault’s current exchange rate. Yield raises the assets behind each share, so the share count stays flat while each share redeems for more.

The specification names two units:

  • Asset: the underlying ERC-20 token the vault manages, returned by the asset function.
  • Share: the vault’s own token, exchanged for assets at a ratio the vault defines.

The function totalAssets reports how much of the underlying asset the vault manages. The spec says it should include compounding from yield and must be inclusive of fees charged against assets.

A worked example with made-up numbers

These numbers are hypothetical. A vault holds 1,000 USDC and has issued 1,000 shares, so one share converts to one USDC. Borrowers then pay 50 USDC of interest into the strategy. totalAssets reads 1,050 while the share supply is still 1,000, so one share now converts to 1.05 USDC.

A new depositor who sends 105 USDC at that rate receives 100 shares. Existing holders are not diluted, because the new money bought shares at the current price.

Which functions does the standard define?

ERC-4626 defines four ways to move money and a matching set of read functions for each. The table summarises the methods in the specification.

Action You specify Function Preview Limit check
Deposit Assets to put in deposit previewDeposit maxDeposit
Mint Shares to receive mint previewMint maxMint
Withdraw Assets to take out withdraw previewWithdraw maxWithdraw
Redeem Shares to burn redeem previewRedeem maxRedeem

The convertToShares and convertToAssets functions give the exchange rate with no fees and no limits. The preview functions try to return the exact result of a transaction in the same block, fees included. The max functions return what the vault would accept right now.

That last group matters for anyone who needs liquidity. The spec says maxWithdraw must account for global and user limits, and must return zero if withdrawals are disabled, even for a short time. Reading it before you deposit tells you whether the exit is open today. It says nothing about tomorrow.

What does ERC-4626 not guarantee?

The standard fixes an interface, not behaviour. Its own security section warns that permissionless integrators can fall prey to malicious implementations that conform to the interface but not to the specification, and recommends reviewing each implementation before integrating it (ERC-4626).

Things the standard leaves to each vault:

  1. The strategy, meaning where the assets are deployed and what can lose them.
  2. Who holds admin or upgrade rights, and with what timelock.
  3. Fees, which the spec says can apply to deposits, yield, AUM, withdrawals or anything else the vault prescribes.
  4. Withdrawal limits and queues, beyond reporting them through the max functions.
  5. How totalAssets values positions that have no live market price.

For a credit analyst, ERC-4626 is closer to a standard subscription and redemption form than to a fund prospectus. It tells you how to get in and out. The prospectus, meaning the strategy and the people who run it, lives elsewhere.

Which ERC-4626 risks should depositors know?

The two risks the spec and the main reference library flag are rounding and share price manipulation in empty vaults. Both come from the arithmetic of converting assets to shares.

Rounding. The specification tells vaults to round in their own favour: down when issuing shares or paying out assets, up when calculating what a user must provide. The amounts are tiny per transaction. The design choice protects remaining holders from being drained one unit at a time.

Inflation or donation attacks. The OpenZeppelin ERC4626 implementation warns that in empty or almost empty vaults, deposits are at high risk of theft through front-running with a donation that inflates the share price. Since version 4.9 the library adds virtual assets and shares to make the attack unprofitable. The Morpho vault docs also cover inflation attack protection in their ERC-4626 flows.

Oracle misuse. The spec says preview values can be manipulated by changing onchain conditions and are not always safe to use as price oracles. Lending markets that accept vault shares as collateral have to price them with care.

Who uses ERC-4626 vaults?

Lending protocols and vault platforms use ERC-4626 so that shares plug into the rest of DeFi without custom adapters. Two examples from protocols we list:

  • Aave describes its Aave Earn Vaults as ERC-4626 compliant vaults where depositors receive shares representing a claim on the underlying assets and yield (Aave V3 overview).
  • Morpho documents ERC-4626 deposit and withdrawal flows for Morpho Vault V2, including share conversions and slippage (Morpho docs).

The share price of a lending vault rises with borrower interest, so its yield depends on pool usage. Our guide to utilization rate in DeFi lending explains that link.

What is ERC-7540?

ERC-7540 extends ERC-4626 with asynchronous deposit and redemption requests for vaults that cannot settle in one transaction. The ERC-7540 specification also carries Final status and lists real-world asset protocols and cross-chain lending among its use cases.

In an ERC-7540 vault, a user submits a request, waits until it becomes claimable, then uses the familiar deposit or redeem call to collect. For a TradFi reader, this looks like a fund with a dealing cut-off and a settlement date, written into the token interface.

How should you check an ERC-4626 vault before depositing?

Treat the standard as a starting point and read the implementation. A short checklist:

  1. Confirm the asset address is the token you expect, on the right network.
  2. Call maxWithdraw or maxRedeem to see whether exits are open now.
  3. Compare convertToAssets with previewRedeem to see fees and slippage on exit.
  4. Read who can change the strategy or upgrade the contract, and the timelock.
  5. Find the audit and check that it covers the deployed code.

Our checklist for verifying a DeFi figure covers how to date and source a vault’s reported yield, and the tools category lists the dashboards we cover. This guide is educational and is not investment advice.

Questions

What does ERC-4626 mean?
ERC-4626 is an Ethereum token standard for tokenized vaults. It defines one interface for depositing a single ERC-20 asset into a vault, receiving shares, and redeeming those shares for the asset later.
Is an ERC-4626 vault safe?
The standard says nothing about safety. It fixes the interface, and the specification itself warns that malicious contracts can conform to the interface without following the rules. Safety depends on the vault's code, strategy, permissions and audits.
Is ERC-4626 the same as a yield-bearing token?
An ERC-4626 share is a yield-bearing token with a standard interface. Many yield-bearing tokens predate the standard and use their own methods, which is the fragmentation the proposal was written to fix.
What is the difference between ERC-4626 and ERC-7540?
ERC-4626 assumes deposits and redemptions settle in the same transaction. ERC-7540 extends it with request flows for vaults that need a delay, such as real-world asset or cross-chain products.

Sources

  1. ERC-4626 Tokenized Vaults, Ethereum Improvement Proposalsaccessed
  2. ERC-7540 Asynchronous ERC-4626 Tokenized Vaults, Ethereum Improvement Proposalsaccessed
  3. ERC4626.sol, OpenZeppelin Contracts on GitHubaccessed
  4. Aave V3 Overview, Aave Earn Vaults section, Aave Docsaccessed
  5. Vaults and ERC4626 Mechanics, Morpho Docsaccessed