ERC-4626
Also known as Tokenized vault standard · EIP-4626
ERC-4626 is an Ethereum standard for tokenized vaults. It defines one common interface for putting assets into a vault, receiving shares in return and calculating what each share is worth, so wallets and protocols can work with any compliant vault without custom code.
Before ERC-4626, every yield vault on Ethereum spoke its own dialect. One named its functions one way, another calculated share values differently, and every lending market or aggregator that wanted to support them had to write and audit new code for each. ERC-4626, finalized in 2022, gave vaults a shared language.
What the standard defines
An ERC-4626 vault holds one underlying asset, such as a dollar token, and issues shares that are themselves ERC-20 tokens. The standard fixes the functions every vault must offer:
- deposit and mint, to put the asset in and receive shares
- withdraw and redeem, to take the asset out by burning shares
- totalAssets, which reports everything the vault holds or is owed
- convertToShares and convertToAssets, which translate between the two at the current rate
- preview and max functions, which show what a transaction would do, and how large it can be, before it is sent
How a share's value grows
The exchange rate is total assets divided by total shares. Suppose a vault holds 1,000,000 dollar tokens and has issued 1,000,000 shares, so one share is worth one token. The vault's strategy earns 20,000 tokens. Total assets rise to 1,020,000 while the share count stays the same, so each share is now worth 1.02 tokens. A new holder who adds 1,020 tokens receives 1,000 shares. Nobody's share balance changed, yet everyone who held shares before the gain is better off. This is the non-rebasing design used by most vault tokens.
Why a standard matters
Because every compliant vault answers the same questions in the same way, one integration works for all of them. A lending market can accept vault shares as collateral by reading convertToAssets, a yield tokenization protocol can split them into principal and yield parts, and wallets can show a holder's value in the underlying asset. This is composability in practice: a standard turns one product into a building block for others. Many yield-bearing dollar tokens are built on it.
Risks and limits
A standard interface says nothing about what the vault does with the assets. Two ERC-4626 vaults can look identical to a wallet and carry very different risks. Known pitfalls include:
- Share price manipulation. In a new, nearly empty vault, an attacker can donate assets to inflate the share price so the next user's shares round down to almost nothing, the so-called inflation attack. Careful vaults defend against it with virtual shares or an initial seed.
- Rounding. The standard requires rounding in the vault's favour, which protects existing holders but can surprise integrators.
- Reading share values as prices. If a vault's total assets can be moved within one transaction, a lending market that trusts convertToAssets directly can be exploited; a robust oracle is safer.
- Exit limits. A vault can cap or delay withdrawals, which the max functions report.
An audit of the vault's code tells you more than its compliance with the interface. Check both, and read what the vault actually holds.
How Tori Finance uses this
strUSD is an ERC-4626 vault token. Its underlying asset is trUSD, Tori Finance's synthetic dollar, and a strUSD share is a claim on trUSD held in the vault. The vault accrues the strategy's variable yield, so the trUSD value of each share changes over time while a holder's share balance stays the same. Because strUSD follows the standard, protocols that already support ERC-4626 vaults can work with it.
Frequently asked questions
What is the difference between ERC-20 and ERC-4626?
ERC-20 is the basic standard for fungible tokens: balances and transfers. ERC-4626 builds on it for vaults. The shares are ERC-20 tokens, and the standard adds functions for putting assets in, taking them out and converting between shares and assets.
How does yield show up in an ERC-4626 vault?
Through the exchange rate. As the vault earns, its total assets grow while the number of shares stays the same, so each share converts into more of the underlying asset. Your share balance does not change.
Does ERC-4626 make a vault safe?
No. It standardizes the interface, not the strategy or the quality of the code. Two compliant vaults can carry very different risks, so the strategy, the audits and the vault's defences against share price manipulation still need checking.
Related terms
Vault token
A vault token is a share in a pool of assets managed by a smart contract. As the vault earns, each share becomes worth more of the underlying asset while the holder's balance stays the same, which makes vault tokens easy for other protocols to hold and track.
DeFi composability
Composability means DeFi protocols can plug into each other like building blocks, so a token from one protocol can serve as collateral, liquidity or a yield source in another without anyone's permission. It multiplies what a token can do, and it also links the protocols' risks together.
Yield-bearing dollar token
A yield-bearing dollar token is a dollar-denominated token that passes the return of an underlying strategy to its holders, usually by becoming worth more over time. The return can come from government debt, lending or trading strategies, and it is variable.
Yield tokenization
Yield tokenization splits a yield-bearing token into two parts: a principal token, which can be exchanged for the underlying asset at a set maturity, and a yield token, which collects the variable yield until then. Trading the two lets one party lock in a fixed rate while another takes on future yield.
Sources
- EIP-4626: Tokenized Vaultseips.ethereum.org
- ethereum.org: ERC-4626 tokenized vault standardethereum.org
- EIP-20: Token Standardeips.ethereum.org
Written by the Tori Finance team. Not investment advice. Yields vary; capital is at risk.