Skip to main content

Shepley Capital

DEFI & WEB3
DeFi and Web3 - Cryptopedia by Shepley Capital

Liquidity Pools in DeFi Explained

Liquidity pools are the foundational infrastructure of decentralised finance. They enable decentralised exchange to operate without an order book, allow lending protocols to match borrowers with lenders automatically, and form the basis of yield farming strategies that attract hundreds of billions of dollars in capital. Understanding how liquidity pools work is essential for anyone who wants to participate in DeFi beyond simply holding tokens.

This article explains liquidity pools from first principles: what they are, how automated market makers use them to facilitate trading, the mechanics of providing liquidity and earning fees, what impermanent loss is and why it matters, and the key risk considerations for liquidity providers. Whether you are considering providing liquidity for the first time or trying to understand how DeFi exchanges work under the hood, this guide covers the complete picture.

 

What Is a Liquidity Pool

A liquidity pool is a collection of two or more cryptocurrencies locked in a Cryptopedia resource to facilitate trading, lending, or other financial functions. Instead of matching individual buyers and sellers through an order book, as traditional exchanges and even [object Object] do, decentralised exchanges using liquidity pools allow anyone to trade against the pool itself at algorithmically determined prices.

Anyone can deposit assets into a liquidity pool and become a liquidity provider. In return for depositing assets, liquidity providers receive LP tokens representing their share of the pool. These LP tokens entitle the holder to a proportional share of the trading fees generated by the pool. When you want to withdraw your liquidity, you return your LP tokens to the pool and receive your proportional share of the pooled assets back.

The most common type of liquidity pool is a two-asset pool containing equal value of two different tokens. For example, an ETH/USDC pool contains Cryptopedia resource and a stablecoins in approximately equal dollar value. When a trader wants to swap USDC for ETH, they send USDC into the pool and receive ETH from it. The smart contracts adjusts the price of ETH in terms of USDC based on how much of each asset is in the pool after the trade.

The price determination formula is the core of what makes liquidity pools work. The most common formula is the constant product formula: x multiplied by y equals k, where x and y are the quantities of the two assets in the pool and k is a constant. Any trade must maintain this constant, which means buying one asset automatically increases its price and decreases the price of the other asset. This mathematical pricing mechanism replaces the need for human market makers or order book matching.

 

How Automated Market Makers Work

Automated market makers (AMMs) are the smart contract systems that use liquidity pools to facilitate trading without order books. When you use a Cryptopedia resource like Uniswap or Curve, you are trading against AMM liquidity pools rather than against other human traders. The AMM pricing algorithm determines the exchange rate based on the current asset ratios in the pool.

The AMM pricing mechanism creates a predictable relationship between trade size and price impact. Small trades relative to the pool size execute close to the market price with minimal slippage. Large trades relative to the pool size cause significant price impact because they substantially change the asset ratios in the pool. Understanding Cryptopedia resource is essential for executing DeFi trades efficiently and not paying more than intended for your swaps.

Different AMM designs exist beyond the basic constant product formula. Curve Finance uses a formula optimised for stablecoin trading, where assets are expected to maintain similar values. Concentrated liquidity AMMs like Uniswap v3 allow liquidity providers to specify price ranges within which they provide liquidity, increasing capital efficiency for liquidity providers who correctly anticipate where most trading will occur. Each design involves different trade-offs between capital efficiency, impermanent loss exposure, and gas costs.

The fee dynamics in AMMs differ from centralised exchange. In an AMM, there is no distinction between maker and taker orders because there are no orders at all. Instead, traders pay a percentage fee on each swap that is distributed to liquidity providers. Typical pool fees range from 0.01 percent for highly liquid stablecoin pairs to 0.3 percent for standard pairs and 1 percent or higher for illiquid or exotic pairs.

 

How to Provide Liquidity

To provide liquidity to a pool, you deposit a specified amount of both assets in the pool in proportion to the current pool ratio. If you want to provide liquidity to an ETH/USDC pool that currently holds equal value of each, you deposit equal dollar values of both ETH and USDC. The exact amounts depend on the current exchange rate: if ETH is worth $4,000 AUD, depositing one ETH requires also depositing $4,000 AUD worth of USDC.

After depositing, you receive LP tokens representing your share of the pool. If the pool had $1,000,000 AUD worth of assets and you deposited $10,000 AUD, you own 1 percent of the pool and receive LP tokens representing that 1 percent ownership. As trading fees are collected, they are added to the pool, increasing the value of all LP token positions proportionally. Your LP tokens represent a claim on a growing pool of assets.

Withdrawing liquidity involves returning your LP tokens to the smart contract, which returns your proportional share of the current pool assets. Your returned amounts will be in the current ratio of the pool, which may differ from what you deposited if prices have moved. If ETH has increased in value since your deposit, you will receive less ETH and more USDC than you put in. This is the core dynamic behind impermanent loss.

Understand the gas costs of providing and withdrawing liquidity. Each deposit and withdrawal is an on-chain transaction with associated Cryptopedia resource. For pools on Ethereum mainnet, these fees can be substantial. For smaller liquidity positions, the gas costs of entering and exiting can represent a significant percentage of the total fees earned, making small liquidity positions on mainnet economically marginal.

 

Impermanent Loss Explained

Impermanent loss is the most important concept for liquidity providers to understand. It refers to the difference in value between holding your assets in a liquidity pool versus holding them in a regular wallet. When the relative prices of the two assets in a pool change, liquidity providers automatically sell the outperforming asset and acquire more of the underperforming asset. This results in a portfolio that underperforms simple holding when prices move significantly in either direction.

A simple example illustrates the concept. If you deposit 1 ETH and 4,000 USDC into a pool when ETH is worth $4,000 AUD, and ETH then doubles to $8,000 AUD, arbitrageurs will trade against your pool until the price ratio reflects the new market price. At this point, your pool position contains approximately 0.71 ETH and $5,657 USDC, for a total value of around $11,314 AUD. If you had simply held 1 ETH and 4,000 USDC, your value would be $12,000 AUD. The difference of $686 AUD is your impermanent loss.

The deeper understanding of Cryptopedia resource is that it represents the opportunity cost of providing liquidity rather than simply holding. The greater the price divergence between the two pool assets, the greater the impermanent loss. The loss is called impermanent because if prices return to the original ratio before you withdraw, it disappears. But if you withdraw while prices have diverged significantly, the loss is realised.

Impermanent loss is most severe in pools with highly volatile or correlated assets where large price divergences are common. It is least severe in stablecoin-to-stablecoin pools, where both assets maintain similar values, and in pools with very high fee income that offsets the loss. Understanding whether the fee income from a pool is likely to exceed the impermanent loss you will incur based on historical price volatility is the core economic analysis for any liquidity provision decision.

 

Yield Farming with Liquidity Pools

Yield farming refers to the practice of deploying liquidity to maximise returns across DeFi protocols, often combining LP fee income with additional token incentives offered by protocols seeking liquidity. Many DeFi protocols incentivise liquidity provision by distributing their own governance or utility tokens to LPs as an additional reward on top of trading fees. These token incentives can make liquidity provision significantly more profitable during periods when protocols are actively distributing incentives.

The risk of yield farming with liquidity pools is layered. Beyond standard liquidity provision risks, yield farmers also take on smart contract risk for each protocol they interact with, governance token price risk for any incentive tokens they receive, and the complexity risk of managing multiple positions across different protocols. Each additional layer of interaction introduces additional smart contract risk.

Yield farming returns are typically quoted as APY, annual percentage yield. These rates are highly variable and can change dramatically over short periods. A pool advertising 80 percent APY today may offer 10 percent APY in a month if the incentive tokens fall in price or if large amounts of capital chase the yield and dilute the return. Never plan a yield farming strategy based on current headline rates: model scenarios where returns are significantly lower.

Start with established Cryptopedia resource that have long track records, extensive security audits, and substantial total value locked. These protocols have been battle-tested over multiple market cycles and represent the safest entry point for DeFi participation. Chasing the highest yields on new, unaudited protocols is where most DeFi losses occur.

 

Risk Assessment for Liquidity Providers

Smart contract risk is the most significant risk for liquidity providers. Even well-audited protocols can contain exploitable bugs. Historical DeFi exploits have drained pools of hundreds of millions of dollars in smart contract attacks. Assess the security posture of any protocol before providing liquidity: number and quality of audits, bug bounty programme existence and size, track record of operation without incidents, and quality of the development team.

Understand the specific liquidation and circuit breaker mechanisms in any lending or complex DeFi protocol you interact with. Different protocols handle extreme market conditions differently. Some pause operations automatically during severe volatility. Others continue operating and allow liquidations that may not be in your interest as a liquidity provider. Understanding these mechanics before you are in a stressful situation is essential.

Market conditions affect liquidity pool risk in ways that are not always obvious. During periods of extreme market volatility, the impermanent loss on highly volatile asset pairs can accumulate rapidly. Correlated crashes where multiple assets decline simultaneously affect the value of your pooled assets independently of impermanent loss. High gas fees during volatility can make it prohibitively expensive to withdraw liquidity at precisely the moment you most want to.

DeFi participation requires understanding the full risk picture before committing capital. The Cryptopedia resource covers additional aspects of risks of DeFi and mechanics in detail. If you are approaching DeFi with significant capital and want professional guidance on navigating the risk-return landscape, the Black Emerald membership at Shepley Capital includes structured DeFi strategy frameworks and ongoing market intelligence.

The mathematics of impermanent loss create a specific risk profile for liquidity pool participants that differs from simple asset holding. When the ratio of the two pooled assets changes significantly from the ratio at deposit, the pool’s rebalancing mechanism means the liquidity provider ends up with proportionally more of the asset that fell in price and less of the asset that rose. The loss is called impermanent because if the ratio returns to the original proportion, the loss disappears. In practice, however, many ratio changes are permanent rather than temporary, making the loss ultimately real for providers who withdraw when the ratio is unfavourable.

 

Further Learning

Expand your crypto knowledge with these related Cryptopedia resources:

liquidity mining | DAOs explained | dApps explained | what is crypto staking | cross-chain bridges

Layer 2 solutions

For structured crypto education, explore the full Cryptopedia library at Shepley Capital, Australia’s most comprehensive crypto education hub.

Frequently Asked Questions

What is a liquidity pool in DeFi?

A liquidity pool is a smart contract holding reserves of two or more tokens that enables decentralised trading without a traditional order book. Traders swap against the pool's reserves, while liquidity providers who deposit tokens earn a share of trading fees generated by their contribution.

How does an automated market maker use a liquidity pool?

An AMM like Uniswap uses a mathematical formula, most commonly x times y equals k (constant product), to automatically adjust token prices based on the ratio of assets in the pool after each trade. As one token is bought it becomes scarcer in the pool and its price rises, while the other becomes more abundant and its price falls.

How do I provide liquidity to a DeFi pool?

Connect your DeFi wallet to a DEX like Uniswap or Curve, select the trading pair you want to provide liquidity for, deposit equal values of both tokens into the pool and receive LP (liquidity provider) tokens representing your share. These LP tokens can later be redeemed for your pro-rata share of the pool plus accrued fees.

What is impermanent loss?

Impermanent loss is the opportunity cost of providing liquidity compared to simply holding the same tokens. If the price ratio between your deposited tokens changes significantly from the time of deposit, you end up with less total value than if you had held the tokens outright. The loss is 'impermanent' only if prices revert to the original ratio.

What fees do liquidity providers earn?

Liquidity providers earn a percentage of every trade that passes through the pool, typically ranging from 0.01 to 1 percent per trade depending on the pool's fee tier. On high-volume pools this fee income can partially or fully offset impermanent loss, but on low-volume pools fees may not compensate for the risk.

What is concentrated liquidity?

Concentrated liquidity (introduced by Uniswap v3) allows liquidity providers to deposit tokens within a specific price range rather than across all prices. This increases capital efficiency and fee earning potential when price stays within the range but results in zero fees if price moves outside it.

Is providing liquidity in DeFi risky?

Yes. Risks include impermanent loss from price divergence, smart contract vulnerabilities in the pool's code, liquidity pool exploits through flash loan attacks and the risk of the protocol itself being compromised or abandoned. Pools containing lesser-known tokens carry additional rug pull and low-liquidity risks.

Are liquidity pool rewards taxable in Australia?

Yes. The ATO treats liquidity mining rewards and fee income as ordinary income at the fair market value in AUD when received. Additionally, depositing tokens into a pool and later withdrawing them may be treated as disposal events triggering capital gains calculations. Seek advice from a tax professional experienced with DeFi.

WRITTEN & REVIEWED BY Chris Shepley

UPDATED: AUGUST 2026

Grow your crypto portfolio with the latest insights, straight to your inbox!

Join 10,150+ CEOs, Business Owners, Parents, Students, & more receiving actionable crypto insights to grow their portfolios.