BTC$82,747+1.11% ETH$2,448+2.22% USDT$0.9993+0.00% BNB$737.08+1.49% XRP$1.33+2.21% USDC$0.9998-0.01% SOL$106.53+2.52% TRX$0.3310+0.02% FIGR_HELOC$1.02-0.51% ZEC$1,214+7.93% HYPE$80.24+2.86% DOGE$0.0813+2.83% XMR$623.39+5.55% USDS$1.00+0.02% WBT$80.95+1.30% LINK$12.23+2.84% ADA$0.2227+2.66% LEO$9.03-0.05% NEAR$4.96+0.59% XLM$0.1801+2.27% RAIN$0.008847-1.67% BCH$279.02+1.08% LTC$60.33+1.27% USDE$0.9997+0.00% UNI$7.42+2.04% DAI$1.00-0.01% AVAX$9.68+1.17% CC$0.1063+2.66% SUI$1.02+3.52% USD1$0.9989+0.00% GRAM$1.34-0.35% HBAR$0.0837+1.74%
Menu
Home
Asset
Copertura
Tutti gli assetEvery research file, largest firstSettoriWhat each category holds and weighsClassificheFourteen leaderboards and what they missHeat mapThe market sized by value, shaded by changeMercato globaleTotal capitalization, dominance and volume
Strumenti
ScreenerFilter by fundamentals, supply and riskConfronta assetResearch files side by sideSalvatoThe assets you have starred
Fondamentali
Economics
Fees & revenueWhat users pay, and who keeps itValore bloccatoCapital deposited in each networkExchange volumeTrading on decentralized exchanges
Networks
Attività di reteAddresses, transactions and throughputStablecoinDollar tokens, where they live and what backs themStaking & yieldWhat securing a network pays, after issuance
Valutazione
Standardized measures
Multipli di valutazionePrice against fees and revenue, limits statedSupply & issuanceCirculating, maximum and the dilution aheadDefinizioni delle metricheEvery figure: definition, period, limitation
Istituzionale
Accesso regolamentato
Prodotti scambiati in borsaEvery US-listed fund, with a page eachTesorerie aziendaliListed companies holding digital assets
Ricerca
Analysis
Note di ricercaShort notes written from stored figuresCalendario eventiUpgrades, halvings and policy dates
Rischio
Framework di rischioFifty factors in seven familiesIncidenti di sicurezzaExploits and failures, with the losses
Impara
Formazione
Learn libraryEleven tracks, from first principlesGlossarioEvery term in plain EnglishCalcolatoriFee drag, dilution and conversion
How this site works
MetodologiaHow every figure is measuredFonti dei datiWho publishes what we showAggiornamento datiWhen each feed last ranAI agentsPrompts that keep an assistant on our dataAPI pubblicaThe same figures, as JSON
Notizie Interroga i dati Chi siamo
Opzioni di lettura
Vista guidata

Nuovo ai mercati — prezzi, rendimenti, market cap? Spieghiamo ogni termine mentre navighi, in modo chiaro. Gli stessi dati, con il supporto integrato.

Parere degli esperti

Il mercato lo conosci già. Solo i dati — chiari, rapidi e compatti, senza spiegazioni aggiuntive. Questa è la vista predefinita.

View
Chiaro o scuro
Lingua
Fotografia FotografiaStill lifeCryptoStudio
API pubblica

Ogni dato presente su questo sito è disponibile in JSON, con il periodo e la fonte allegati.

Leggi la documentazione API
DeFi Advanced 8 min

Automated market makers and impermanent loss, with the arithmetic

How a constant-product pool prices a trade, why a liquidity provider ends up short of simply holding, and the exact size of the shortfall.

An automated market maker replaces the order book with a formula: a pool holds two assets, and the ratio in which it holds them determines the price at which it will trade. Nobody quotes, nobody cancels, and the pool will always take the other side of a trade, which is the source of both its usefulness and the losses its depositors absorb. The loss has a closed form, and knowing it is the difference between measuring a position and guessing at it.

How the formula prices a trade

The most common design is the constant product formula, written x * y = k, where x and y are the quantities of the two assets held by the liquidity pool. A trade may change the composition of the pool but not the product, so buying x means supplying enough y to keep k intact. The marginal price implied by the pool is simply y / x, and the two reserves at any price p are x = sqrt(k/p) and y = sqrt(k*p).

Because the product is fixed, a large trade walks the price along a curve rather than executing at a single number. The gap between the marginal price before the trade and the average price actually paid is price impact, and it grows with trade size relative to the pool. This is why a quoted price on a decentralized exchange is only meaningful next to a size, and why slippage limits are part of every transaction. A pool never runs out of either asset in the arithmetic sense, since the price approaches infinity as one reserve approaches zero, but it becomes unusable long before that.

The shortfall against holding, computed exactly

A liquidity provider deposits both assets and receives a claim on a share of the pool. If the external price of one asset moves, arbitrage traders trade against the pool until its implied price matches the outside market. They buy the asset the pool is now underpricing, which means the pool ends up holding less of whichever asset rose and more of whichever fell. That mechanical rebalancing is not a mistake; it is how the price gets corrected, and the provider pays for it.

Let r be the ratio of the new price to the old price. The pool value relative to simply holding the original two amounts is

value ratio = 2 * sqrt(r) / (1 + r)

and impermanent loss is that ratio minus one. It is always negative for any r other than one, and it is symmetric: a halving and a doubling produce the same shortfall.

Price ratio rValue if simply heldShortfall
0.80 or 1.250.9938-0.62%
0.67 or 1.500.9798-2.02%
0.50 or 2.000.9428-5.72%
0.33 or 3.000.8660-13.40%
0.25 or 4.000.8000-20.00%
0.20 or 5.000.7454-25.46%
0.10 or 10.000.5750-42.50%

Worked through with quantities: a pool holds 10 units of a volatile asset and 20,000 units of a stablecoin, so k = 200,000 and the implied price is 2,000. The price doubles to 4,000. The new reserves are sqrt(200,000 / 4,000) = 7.0711 units and sqrt(200,000 x 4,000) = 28,284.27 stablecoins, worth 56,568.54 in total. Holding the original 10 units and 20,000 stablecoins would have been worth 60,000. The gap is 3,431.46, or 5.72 percent, exactly as the formula says.

The name is misleading and the better term is divergence loss. Nothing about it is temporary once a position is withdrawn; it only reverses if the price ratio returns to where it started while the provider is still in the pool. The economics are those of a short volatility position: the provider is systematically selling what is rising and buying what is falling, and the trading fees are the premium collected for doing so.

Fees, and the harder benchmark

The provider's return is fee income minus divergence loss, and fee income scales with volume rather than with price movement. The ratio to watch is therefore turnover against the size of the pool: DEX volume relative to value locked says how hard each unit of deposited capital is working, and a pool with a high fee tier but no flow earns nothing. Comparing daily DEX volume and total value locked across venues is the same comparison at the protocol level.

Concentrated liquidity lets a provider allocate capital only within a chosen price range, which multiplies both fee income and divergence loss within that range and pays nothing at all once the price leaves it. It converts a passive position into an active one that requires a view on where the price will trade, and it makes the simple two-asset formula above a lower bound on the loss rather than the answer.

There is also a benchmark stricter than holding. Divergence loss compares the pool against a passive holder, but the deeper cost is that the pool quotes a stale price between trades and informed traders take the difference. Measured against a portfolio that continuously rebalanced at market prices, the shortfall is larger, and it is a transfer to arbitrage traders rather than a market movement. This is closely related to MEV: the right to be the first to correct a stale pool price is valuable, and it is auctioned in the block-building market rather than earned by the pool.

What the design does well

Constant product pools are not a poor imitation of an order book; they solve a different problem. They provide a price for assets too small or too new for a professional market maker to quote, they need no active management to stay live, and their state is public, which makes routing and aggregation trivial. Pools for assets expected to trade near a fixed ratio, such as two stablecoins, use curves that keep the price flat over a wide band and only steepen at the edges, which is why depth for those pairs can be very good and why the same pools deteriorate suddenly during a depeg.

Fee income and the shortfall against holding are both measurable after the fact, which is more than can be said for most trading strategies. The DEX activity pages carry venue-level volume and turnover, the value locked pages show where the deposits sit, and the yield article next in this track separates trading fees from token incentives, which are frequently reported together as a single number.

01

Cosa tenere a mente

A constant-product pool sets its price by the ratio of its reserves, so every trade moves the price and large trades pay a worse average.
Divergence loss against holding equals 2*sqrt(r)/(1+r) minus one, where r is the ratio of the new price to the old one.
The shortfall is symmetric: a doubling and a halving both cost about 5.72 percent relative to holding the original assets.
Fee income scales with volume, not with price movement, so turnover relative to pool size is the figure that determines whether fees cover the loss.
Measured against a continuously rebalanced portfolio rather than a passive holder, the cost is larger and accrues to arbitrage traders.
Digital Asset DatabaseDigital asset research & education

Asset

Tutti gli assetSettoriClassificheHeat mapScreenerConfrontaSalvato

Fondamentali

Fees & revenueValore bloccatoExchange volumeAttività di reteStablecoinStaking & yield

Valuation & risk

Multipli di valutazioneSupply & issuanceDefinizioni delle metricheFramework di rischioIncidenti di sicurezza

Istituzionale

Prodotti scambiati in borsaTesorerie aziendaliEventsNote di ricercaNotizie

Impara

Learn libraryGlossarioCalcolatoriInterroga i datiAI agentsAPI pubblica

Informazioni

Chi siamoContattoMetodologiaFonti dei datiPolitica editorialeAggiornamento dati

Legale

DisclaimerTermini di utilizzoPrivacy policy