BTC/USD $68,420 +2.8%
ETH/USD $3,540 +1.4%
SOL/USD $142.80 -0.6%
BNB/USD $605.20 +0.9%
XRP/USD $0.62 -1.2%
DOGE/USD $0.18 +5.4%
BTC/USD $68,420 +2.8%
ETH/USD $3,540 +1.4%
SOL/USD $142.80 -0.6%
BNB/USD $605.20 +0.9%
XRP/USD $0.62 -1.2%
DOGE/USD $0.18 +5.4%
DeFi

What Is Phantom Liquidity in a DeFi Pool, and How Do Attackers Exploit It?

Phantom liquidity occurs when a liquidity pool’s internal accounting still records a deposit as active even after the real underlying tokens have been withdrawn Concentrated-liquidity pool de

AnonymousCryptoCompass newsroom
November 30, 2026
3 min read
NEWS
What Is Phantom Liquidity in a DeFi Pool, and How Do Attackers Exploit It?
CryptoCompass editorial visual for defi coverage.
What Is Phantom Liquidity in a DeFi Pool, and How Do Attackers Exploit It?
  • Phantom liquidity occurs when a liquidity pool’s internal accounting still records a deposit as active even after the real underlying tokens have been withdrawn
  • Concentrated-liquidity pool designs are particularly susceptible because withdrawal calculations can produce rounding edge cases at specific price points
  • Once phantom liquidity exists, an attacker can exploit the mismatch between recorded and actual balances through a carefully constructed swap transaction

Modern decentralized exchange pools, particularly those using a concentrated-liquidity design, let liquidity providers deposit funds across a specific price range rather than across the full possible price spectrum a trading pair could reach. This design improves capital efficiency significantly compared with older, simpler pool models, letting providers earn a greater share of trading fees for the same amount of deposited capital, but it also introduces considerably more complex internal accounting than a simple, full-range pool requires.

Phantom liquidity describes a specific failure mode within that accounting system, where a pool’s smart contract continues to record a liquidity position as active and available even though the real tokens backing that position have already been withdrawn or otherwise removed from the pool. In effect, the contract’s internal ledger and its actual token balances fall out of sync with each other.

This mismatch typically arises from rounding behavior at specific price points. When a liquidity provider withdraws a position, the pool calculates two output amounts, one for each token in the trading pair, based on where the current price sits within that provider’s chosen range. At certain price points, both of those calculated amounts can round down to zero under the pool’s math, and if the contract’s burn logic fails to correspondingly reduce its recorded active-liquidity figure in that specific scenario, the pool is left believing more liquidity remains active than genuinely exists.

Once this phantom liquidity exists, an attacker who identifies the discrepancy can construct a swap transaction designed specifically to extract value from the gap between the pool’s internal records and its real token balances, effectively draining funds that the contract’s own accounting incorrectly believes are still present and available to back trades.

The Biswap incident, which SlowMist’s own hack-tracking database logged as a roughly $51,000 loss tied to exactly this kind of rounding flaw in an older pool’s burn function, illustrates how even mature, previously audited DeFi protocols can carry subtle edge-case vulnerabilities in their core liquidity-accounting logic that only surface years after initial deployment. The full incident record is maintained on SlowMist’s live hack-tracking database.

This post first appeared in What Is Phantom Liquidity in a DeFi Pool, and How Do Attackers Exploit It?