Price Per Share
A vault's exchange rate between one share and the underlying asset; the value an inflation attack manipulates via donation.
Price per share (sometimes pricePerShare or share price) is the exchange rate between a single vault share and the underlying asset it represents. In an ERC-4626 vault it is effectively totalAssets / totalSupply: the amount of underlying that one share can redeem. It is the quantity a depositor cares about, and the quantity an attacker targets.
Why it is attackable
When a vault derives totalAssets from its raw token balance (asset.balanceOf(address(this))), anyone who can transfer the underlying can raise the numerator without minting new shares — inflating the price per share by donation. This is the core mechanic of the inflation attack, and the same primitive that let attackers double pricePerShare on lending oracles in incidents like Cream Finance (2021) and Resupply (2025).
Defensive framing
A robust vault treats price per share as an invariant surface: it should change only through legitimate deposit and withdraw flows, never through a raw transfer. Property tests assert exactly this — that a donation cannot move the price per share — and defenses like virtual shares and internal balance tracking exist to keep the exchange rate anchored to recorded positions rather than a manipulable balance.
Articles Using This Term
Learn more about Price Per Share in these articles:

Your Vault Prices Collateral at $1: 5 Ways to Bad Debt
A token traded at 63 cents while lending vaults valued it at $1.13. Five ways a lending vault ends up with bad debt, each run locally, with the fix in code.

ERC-4626 inflation attack: how it works and how to stop it
The ERC-4626 inflation attack still drains vaults in 2026. See the deposit-donate math, real hacks (Cream, Sonne, Resupply), and the invariants that catch it.
Related Terms
ERC-4626
Tokenized vault standard providing a unified API for yield-bearing vaults with deposit, withdrawal, and accounting functions.
Inflation Attack
Vault vulnerability where attackers manipulate share prices by directly donating assets, causing victims to receive fewer shares.
Vault Accounting
Internal tracking system for token balances within a protocol's central contract, separate from actual token transfers.
Virtual Shares
Phantom shares and assets added to ERC-4626 conversion math to make the empty-vault exchange rate well-defined and inflation attacks uneconomical.
Need expert guidance on Price Per Share?
Our team at Zealynx has deep expertise in blockchain security and DeFi protocols. Whether you need an audit or consultation, we're here to help.
Get a Quote