Assets and shares are different quantities
ERC-4626 standardizes a tokenized vault interface, including conversions between deposited assets and vault shares. The standard does not automatically make every implementation economically safe. In a vulnerable design, direct asset transfers can change the assets-per-share ratio without minting matching shares. OpenZeppelin explains how this interacts with rounding, particularly when a vault is empty or has very little share supply.
2 sources for this section
The rounding problem
As an illustrative model, suppose a very small number of outstanding shares comes to represent a large asset balance. A later small deposit may convert to a fraction of one share. If the implementation rounds that result down aggressively, the depositor can receive little or no ownership despite adding assets. The harmful effect comes from the conversion and rounding rules, not from the word inflation referring to ordinary token issuance or consumer-price increases.
2 sources for this section
Defensive design and review
Mitigations can include virtual shares and assets, higher share precision, suitable initialization, and user-enforced minimum-share bounds, depending on the design. These choices should be analyzed against the actual implementation and integration. Preview functions are useful estimates but a transaction can execute against changed state, so slippage protections remain important. An audit should test first deposits, direct donations, rounding boundaries, and withdrawal behavior.
A vault using the ERC-4626 interface should not be described as protected merely because its interface conforms to the standard.
2 sources for this section
The source notesEvidence & further reading2 sources
- ERC-4626: Tokenized vaults Ethereum Improvement Proposals · Primary source · accessed 2026-09-21
- ERC-4626 vaults and inflation attacks OpenZeppelin · Primary source · accessed 2026-09-21