Glossary

LP Token (Liquidity Provider Token)

LP tokens represent a liquidity provider's proportional share of assets deposited in a decentralized exchange pool.

Key Takeaways

  • LP tokens are receipts issued by a decentralized exchange when you deposit assets into a liquidity pool. Each token represents a proportional claim on the pool's reserves and accumulated trading fees.
  • LP token value changes over time: trading fees increase the underlying value, while impermanent loss from price divergence between paired assets can decrease it. Net profitability depends on fee volume relative to price volatility.
  • LP tokens are composable across DeFi protocols: they can be staked for additional farming rewards, deposited as collateral in lending protocols, or wrapped in yield optimizers for auto-compounding returns.

What Is an LP Token?

An LP token (liquidity provider token) is a cryptographic receipt token issued by an automated market maker (AMM) when a user deposits assets into a liquidity pool. The token represents the depositor's proportional share of the pool's total reserves. When the provider wants to withdraw, they return (burn) their LP tokens and receive their share of the pool's assets, including any fees that accumulated while their liquidity was active.

LP tokens solve a fundamental accounting problem: how to track each provider's share in a pool that constantly changes size as traders swap assets and other providers add or remove liquidity. Rather than maintaining a ledger of individual deposits, the AMM issues fungible tokens where each unit represents an equal fraction of the pool. If you hold 5% of the LP token supply, you have a claim on 5% of every asset in the pool.

The concept originated with early AMM designs and was popularized by Uniswap V2, which implemented LP tokens as standard ERC-20 tokens. This design choice made LP tokens transferable and composable with the broader DeFi ecosystem, enabling an entire layer of financial products built on top of liquidity positions.

How It Works

In a constant-product AMM like Uniswap V2, LP token mechanics follow a precise mathematical model tied to the pool's reserves.

Minting LP Tokens

When you deposit assets into a pool, the AMM mints new LP tokens according to a formula that ensures your share accurately reflects your contribution:

// First depositor: geometric mean of deposits
lp_tokens = sqrt(amount_A * amount_B) - MINIMUM_LIQUIDITY

// Subsequent depositors: proportional to existing supply
lp_tokens = min(
  (amount_A / reserve_A) * total_supply,
  (amount_B / reserve_B) * total_supply
)

The first depositor sets the initial price ratio between the two assets. The MINIMUM_LIQUIDITY constant (1,000 units in Uniswap V2) is permanently locked by minting to the zero address. This prevents a class of inflation attacks where a malicious first depositor could manipulate the LP token value to steal subsequent deposits through integer rounding.

For subsequent deposits, the min() function incentivizes depositors to add tokens in the pool's current ratio. Depositing in a skewed ratio means receiving LP tokens based on the lesser proportion, effectively losing the excess.

Fee Accrual

Trading fees do not distribute to LP holders as separate payments. Instead, fees accrue directly into the pool's reserves, increasing the underlying value of each LP token over time. A standard Uniswap V2 pool charges a 0.3% fee on every swap, all of which goes to liquidity providers.

This means LP token redemption value grows continuously as trades execute. If a pool generates significant trading volume, the LP tokens become worth more than the original deposit even after accounting for impermanent loss.

Burning LP Tokens

Withdrawing liquidity burns LP tokens and returns the proportional share of reserves:

// Redemption formula
amount_A_returned = (lp_tokens_burned / total_supply) * reserve_A
amount_B_returned = (lp_tokens_burned / total_supply) * reserve_B

The amounts returned reflect the current pool state, not the original deposit. If the price ratio between the assets changed since deposit, the provider receives a different token composition than they deposited. This difference is the source of impermanent loss.

Concentrated Liquidity Positions

Uniswap V3 introduced concentrated liquidity, which fundamentally changed LP token design. Instead of providing liquidity across the entire price range, providers specify a custom price range (defined by tick boundaries) where their capital is active.

Because each position has unique parameters (price range, fee tier, accumulated fees), positions are no longer interchangeable. Uniswap V3 represents them as ERC-721 NFTs rather than fungible ERC-20 tokens:

FeatureV2 LP Tokens (ERC-20)V3 Positions (ERC-721)
FungibilityFungible, interchangeableNon-fungible, unique per range
Capital efficiencyLow (spread across all prices)High (up to 4,000x for narrow ranges)
ComposabilityHigh (easy to stake, use as collateral)Lower (NFTs harder to integrate)
Impermanent lossStandardAmplified within chosen range

This tradeoff between capital efficiency and composability has led some protocols to build wrapper contracts that re-fungibilize V3 positions, restoring ERC-20 compatibility for use in farming and lending.

LP Token Composability

The power of LP tokens extends far beyond simply earning trading fees. Because they are standard token contracts, LP tokens can be used across the DeFi stack:

Yield Farming

Protocols distribute their governance tokens to liquidity providers by accepting LP token deposits in staking contracts. SushiSwap's MasterChef contract pioneered this model: deposit your LP tokens, earn SUSHI rewards on top of trading fees. Curve Finance uses Liquidity Gauge contracts where LP token stakers earn CRV emissions, with gauge weights governed by veCRV holders.

This creates a layered yield structure: base trading fees from the AMM plus farming rewards from the staking protocol. During peak yield farming seasons, farming rewards can significantly exceed base fee income.

Collateral in Lending

Lending protocols like Aave and MakerDAO accept certain LP tokens as collateral, allowing providers to borrow against their position without exiting the pool. This enables leveraged LP strategies: deposit LP tokens as collateral, borrow stablecoins, add more liquidity, and repeat.

The collateral factor for LP tokens is typically lower than for single assets because LP token value carries both smart contract risk and impermanent loss risk. Liquidation can occur if the LP token's value drops below the required health factor.

Yield Optimizers

Auto-compounding vaults from protocols like Yearn Finance and Beefy Finance accept LP tokens and automatically harvest farming rewards, sell them, and reinvest the proceeds into the underlying LP position. This compounds returns that would otherwise require manual claiming and restaking, saving gas costs and time.

Impermanent Loss and LP Token Value

Impermanent loss is the reduction in value that occurs when the price ratio of pooled assets diverges from the ratio at deposit time. The AMM's rebalancing mechanism continuously sells the appreciating token and accumulates the depreciating one, resulting in a portfolio worth less than simply holding both assets.

For a standard 50/50 constant-product pool, impermanent loss depends only on the magnitude of price change:

IL = (2 * sqrt(price_ratio)) / (1 + price_ratio) - 1

// Example impermanent loss at various price changes:
// 1.25x price change →  -0.6% IL
// 1.50x price change →  -2.0% IL
// 2.00x price change →  -5.7% IL
// 3.00x price change → -13.4% IL
// 5.00x price change → -25.5% IL

LP tokens are profitable only when accumulated trading fees exceed the impermanent loss. High-volume, low-volatility pairs (like stablecoin-to-stablecoin pools on Curve) tend to generate the best risk-adjusted returns for LPs, while volatile pairs require substantially higher trading volume to compensate for IL.

Use Cases

  • Passive market making: earning trading fees by providing liquidity to AMM pools without actively managing orders, as an AMM handles price discovery and rebalancing automatically
  • Protocol-owned liquidity: DAOs and token projects deposit their own assets into pools and hold the LP tokens in their treasury, ensuring permanent liquidity for their token
  • Leveraged yield strategies: depositing LP tokens as collateral, borrowing against them, and reinvesting to amplify exposure to trading fees and farming rewards
  • Liquidity bootstrapping: new token projects pair their token with ETH or a stablecoin, then lock the LP tokens to demonstrate commitment to maintaining tradeable liquidity
  • Index fund exposure: Balancer pools support up to eight tokens at configurable weights, allowing LP tokens to function as self-rebalancing index funds across multiple assets

Risks and Considerations

Rug Pulls via LP Withdrawal

If a project team holds a large share of LP tokens without locking them, they can remove liquidity at any time, draining the pool of valuable assets and crashing their token's price. Legitimate projects mitigate this by locking LP tokens in time-lock contracts or burning them entirely. Before providing liquidity, verify whether the LP tokens for a pool are locked and for how long.

Smart Contract Risk

LP tokens inherit the smart contract risk of every protocol in the composability stack. A vulnerability in the underlying AMM, the farming contract, or the yield optimizer could result in loss of the LP tokens or the pooled assets. Even audited contracts can contain exploitable bugs, as demonstrated by the Curve Finance reentrancy exploit in July 2023.

Cascading Liquidations

When LP tokens are used as collateral across multiple protocols, a sharp price movement can trigger cascading liquidations. The LP token value drops from impermanent loss, which triggers liquidation of the collateral position, which dumps more LP tokens on the market, further depressing their price.

Oracle Manipulation

Flash loan attacks can temporarily manipulate LP token price feeds used by lending protocols, creating arbitrage opportunities at the expense of other users. Protocols that accept LP tokens as collateral must use time-weighted or manipulation-resistant oracle designs to mitigate this risk.

LP Tokens and Bitcoin DeFi

As Bitcoin layer-2 solutions and BTC-native DeFi mature, LP token mechanics are being adapted for Bitcoin-based liquidity pools. Protocols building on Spark and other Bitcoin L2s are exploring AMM designs that issue LP tokens representing positions in BTC and stablecoin pairs, bringing composable liquidity provision to the Bitcoin ecosystem while preserving the security guarantees of the base layer.

This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.