ERC-4626 tokenized vault
ERC-4626 standardizes an ERC-20 share interface for vaults that accept one underlying ERC-20 asset, while leaving strategy, valuation, controls, and safety to each implementation.
Category: Products and vaultsContainer outline category cue
System record
Start with the economic purpose, participants, resources, and entitlements before studying implementation detail.
Why it exists
ERC-4626 gives wallets, aggregators, and protocols common deposit, mint, withdraw, redeem, conversion, preview, limit, asset, and total-assets methods for tokenized vault integration.
Traditional-finance analogy
Standard account and dealing interface for an investment vehicle is the closest comparison recorded for this concept.
Where the analogy stops
- Interface conformance does not specify the investment mandate, asset quality, valuation method, liquidity, governance, fees, or legal rights behind a vault.
- Public conversion and preview methods can differ by fees, slippage, limits, rounding, and manipulable state, so integrators must use the operation-specific method.
Main actors
- ActorDepositor, minter, withdrawer, or redeemer
- ActorShare owner and receiver
- ActorERC-4626 vault implementation
- ActorUnderlying ERC-20 asset contract
- ActorWallet, router, aggregator, or integrating protocol
- ActorStrategy, governance, or upgrade authority
Assets and claims
Assets — controlled or transformed resources
Assets are resources the mechanism moves, holds, values, or transforms.
- AssetOne underlying ERC-20 accounting asset
- AssetAssets managed by the vault
- AssetERC-20 vault shares
Claims — entitlements and corresponding dependencies
Claims are rights to value, repayment, redemption, control, or another party's performance; each depends on an obligation or system that must honor it.
- ClaimShareholder claim under vault accounting
- ClaimDeposit, mint, withdrawal, or redemption execution entitlement
ERC-4626 standardizes how one-underlying-asset vaults expose ERC-20 shares, conversions, previews, limits, deposits, mints, withdrawals, and redemptions.
Why it exists
Section titled “Why it exists”Without a shared interface, every wallet, router, aggregator, and protocol needs custom adapters for each tokenized vault. ERC-4626 defines common method meaning so integrators can reason consistently about assets and shares while still reviewing each implementation.
Traditional-finance analogy
Section titled “Traditional-finance analogy”A standard account and dealing interface for an investment vehicle is a useful analogy. The interface does not specify the investment mandate, asset quality, valuation method, liquidity, fees, governance, controls, or legal rights. It says how software asks questions and performs exchanges, not whether the product is sound.
Asset and share interface state changes
Section titled “Asset and share interface state changes”An ERC-4626 vault is also an ERC-20 share token and names one ERC-20 asset().
totalAssets() reports managed assets under the implementation’s accounting.
The share token is a pooled share and normally a redeemable claim under the
vault’s current limits; it is not the underlying asset itself.
Four state-changing paths separate whether the caller specifies assets or shares:
| User intent | Exact input or output | Operation-specific quote | Limit query |
|---|---|---|---|
| Deposit assets | Exact assets in; shares out | previewDeposit | maxDeposit |
| Mint shares | Exact shares out; assets in | previewMint | maxMint |
| Withdraw assets | Exact assets out; shares burned | previewWithdraw | maxWithdraw |
| Redeem shares | Exact shares burned; assets out | previewRedeem | maxRedeem |
The convertToShares and convertToAssets methods describe idealized average
conversion and exclude operation-specific fees and slippage. Preview methods aim
to model the current operation; maximum methods express current limits. They are
not interchangeable.
Conversion and rounding
Section titled “Conversion and rounding”For a simplified nonempty proportional vault:
idealShareConversion = assets * totalSupply / totalAssetsidealAssetConversion = shares * totalAssets / totalSupplyThe standard requires opposing rounding directions that favor the vault rather than letting users extract value through rounding. Empty and nearly empty states need a defined initial rate and defense against donation or inflation attacks; the simplified equations alone are not a safe implementation.
Step-by-step integration
Section titled “Step-by-step integration”- Verify the underlying token, share token, implementation, upgrade authority, and strategy.
- Read the operation’s maximum and operation-specific preview at the intended state.
- Apply caller-side minimum shares or assets and maximum assets or shares as slippage protection where the integration supports it.
- Set only the required token allowance and execute deposit, mint, withdraw, or redeem.
- Reconcile emitted events, actual transfers, returned values, share supply, and total-assets accounting.
- Handle pauses, queues, asynchronous extensions, fee changes, and nonstandard token behavior explicitly.
Capital flow transfers underlying assets. Claim flow mints, transfers, approves,
and burns shares. Return flow changes totalAssets() or share supply only
through the concrete implementation’s named strategy, payer, fee, or issuance
rule. Information flow includes conversions, previews, limits, fees, balances,
and events. Risk flow reaches shareholders through strategy loss, accounting,
rounding, liquidity, or control and can propagate when an integrator treats
those values as a manipulation-resistant oracle without analysis.
Return source and loss allocation
Section titled “Return source and loss allocation”ERC-4626 defines no yield source. A vault’s strategy may receive borrower interest, trader fees, network payments, issuer income, or sponsor incentives; new token issuance can instead impose dilution on non-recipients. The interface does not determine which source applies. Loss reduces the assets represented by vault shares and is therefore borne by vault-share holders unless funded reserves, insurance, a manager guarantee, or a subordinated claim absorbs it first. The standard also does not guarantee liquidity, solvency, principal, governance quality, or an executable one-to-one redemption.
Engineer or auditor lens
Section titled “Engineer or auditor lens”Test every normative method and event, exact rounding direction, first deposit, donations, virtual offsets, decimals, zero and maximum inputs, preview-to-execution bounds, maximum limits, fee inclusion, allowances, third-party owner and receiver roles, reentrancy, callbacks, unusual ERC-20 behavior, total-assets manipulation, same-block oracle use, upgrades, pauses, and loss reporting.
The ERC-4626 specification is the normative source for interface behavior and security considerations. OpenZeppelin’s current ERC-4626 implementation documentation describes one implementation and its donation or inflation defense. Review the deployed code and version rather than assuming a library name proves behavior. The implementation documentation was reviewed 2026-08-10.
Common misunderstandings
Section titled “Common misunderstandings”- “ERC-4626 means yield-bearing.” The standard defines a vault interface; a vault can gain, lose, or hold value without yield.
- “
convertToAssetsis the redemption quote.” The relevant preview and maximum methods capture different current-operation rules. - “Standards compliance means audited or safe.” Strategy, accounting, token behavior, controls, and upgrades remain implementation-specific.
Revisit the underlying vault and vault share.
Machine-readable model
Key equations
Canonical expressions come from the structured concept record. KaTeX renders the notation, while the plain-text expression and variable table keep its meaning and units inspectable without JavaScript. Read the narrative above for the model's domain, assumptions, and rounding rules.
Equation 1 Plain-text equation:
idealShareConversion = assets * totalSupply / totalAssetsVariables and units for equation 1 Symbol Meaning Unit idealShareConversionIdeal Share Conversion share or claim units assetsAssets selected underlying-asset units totalSupplyTotal Supply share or claim units totalAssetsTotal Assets selected underlying-asset units Equation 2 Plain-text equation:
idealAssetConversion = shares * totalAssets / totalSupplyVariables and units for equation 2 Symbol Meaning Unit idealAssetConversionIdeal Asset Conversion selected underlying-asset units sharesShares share or claim units totalAssetsTotal Assets selected underlying-asset units totalSupplyTotal Supply share or claim units
Assurance contract
Security properties
These structured statements define desired behavior. Their stable IDs can bind tests, invariants, specifications, audit findings, or proof results without turning descriptive review advice into an assurance claim.
Desired · not evaluated: No test, audit, or proof result is implied until scoped evidence is linked to this property.
Deposit, mint, withdraw, and redeem use the standard's opposing user-protective rounding directions and operation-specific previews
Conversion estimates, previews, maximum limits, fees, actual execution, and share allowances satisfy their distinct interface contracts
Empty and low-liquidity states cannot let an attacker capture a later depositor's value through donation and rounding
Integrators validate the concrete strategy, total-assets accounting, token behavior, controls, upgrades, and loss paths beyond interface conformance
Knowledge check
Quiz
Answer in your own words, then open the model answer.
What problem does ERC-4626 tokenized vault exist to address?
Model answer
ERC-4626 gives wallets, aggregators, and protocols common deposit, mint, withdraw, redeem, conversion, preview, limit, asset, and total-assets methods for tokenized vault integration.