{"id":37936,"date":"2023-10-23T13:00:00","date_gmt":"2023-10-23T10:00:00","guid":{"rendered":"https:\/\/forklog.com\/en\/?p=37936"},"modified":"2025-08-29T23:38:59","modified_gmt":"2025-08-29T20:38:59","slug":"what-are-liquidity-pools-and-how-do-they-work","status":"publish","type":"post","link":"https:\/\/forklog.com\/en\/what-are-liquidity-pools-and-how-do-they-work\/","title":{"rendered":"What are liquidity pools and how do they work?"},"content":{"rendered":"<div class=\"wp-block-text-wrappers-cards single_card\">\n<h2 class=\"card_label\">What is liquidity?<\/h2>\n<p><strong>Liquidity<\/strong> is a foundational concept in both traditional and crypto markets. It describes the ability to sell assets quickly and smoothly at a price close to the market rate.<\/p>\n<p>Liquidity is usually provided by a large number of buyers and sellers. If a financial instrument is little traded and thus illiquid, converting it to cash may take time.<\/p>\n<p>A trade may also involve significant <a href=\"https:\/\/forklog.com\/en\/news\/why-does-price-slippage-occur-in-crypto-trading\">slippage<\/a>. This is the difference between the price at which a market participant intended to sell an asset and the price at which the trade was actually executed.<\/p>\n<\/div>\n<div class=\"wp-block-text-wrappers-cards single_card\">\n<h2 class=\"card_label\">What is a liquidity pool?<\/h2>\n<p>Liquidity pools are a key element of decentralised finance (DeFi). They are sets of cryptoassets locked in a <a href=\"https:\/\/forklog.com\/en\/news\/what-is-a-smart-contract\">smart contract<\/a>.<\/p>\n<p>Liquidity pools are used across the \u201cmoney Lego\u201d stack, spanning crypto lending, <span data-descr=\"decentralised\/non-custodial exchanges\" class=\"old_tooltip\">DEX<\/span>, decentralised insurance, synthetic assets, and more.<\/p>\n<p>An important component is the <a href=\"https:\/\/forklog.com\/en\/news\/what-is-an-automated-market-maker\">automated market maker (AMM)<\/a>. This algorithm features in most DeFi protocols. It manages liquidity and prices of cryptoassets on decentralised platforms, enabling automated trading.<\/p>\n<\/div>\n<div class=\"wp-block-text-wrappers-cards single_card\">\n<h2 class=\"card_label\">How does a liquidity pool work?<\/h2>\n<p>Anyone in the DeFi ecosystem can create a liquidity pool. To do so, an investor locks a pair of cryptoassets in a smart contract in equal value parts, setting initial prices.<\/p>\n<p>Users of AMM platforms who supply funds to pools are called liquidity providers (LPs). Prices are set by supply and demand (a coin\u2019s market value rises when many users buy it, and vice versa) and by the formula embedded in each platform\u2019s algorithm.<\/p>\n<p>For supplying assets, liquidity providers earn a share of trading fees. The size of this reward depends on the amount of liquidity contributed, represented by special cryptoassets\u2014LP tokens. These can be used across the \u201cmoney Lego\u201d ecosystem.<\/p>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"550\" src=\"https:\/\/forklog.com\/wp-content\/uploads\/lp-lp-tokens-1024x550.png\" alt=\"lp-lp-tokens\" class=\"wp-image-218562\" srcset=\"https:\/\/forklog.com\/wp-content\/uploads\/lp-lp-tokens-1024x550.png 1024w, https:\/\/forklog.com\/wp-content\/uploads\/lp-lp-tokens-300x161.png 300w, https:\/\/forklog.com\/wp-content\/uploads\/lp-lp-tokens-768x412.png 768w, https:\/\/forklog.com\/wp-content\/uploads\/lp-lp-tokens.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<p>The practice of earning passively by depositing cryptoassets on DeFi platforms is known as <a href=\"https:\/\/forklog.com\/en\/news\/what-is-yield-farming\">\u2018yield farming\u2019<\/a> or \u201cliquidity mining\u201d.<\/p>\n<p>Any market participant can trade the assets in a pool. There is no need for counterparties (buyers and sellers as on traditional platforms) or an order book\u2014the AMM executes trades directly against the pool.<\/p>\n<p>Most DEXs operate under the Constant Product Market Maker (CPMM) model. First introduced by Bancor, it rose to prominence with <a href=\"https:\/\/forklog.com\/en\/news\/what-is-uniswap-uni\">Uniswap<\/a>.<\/p>\n<p>Under CPMM, the product of the values of two assets in a pool is a constant:<\/p>\n<p>Token A * Token B = K<\/p>\n<p>where:<\/p>\n<p>Token A: value of Token A<\/p>\n<p>Token B: value of Token B<\/p>\n<p>K: constant<\/p>\n<p>The ratio between tokens in the pool dictates prices. For example, if someone buys ETH in a DAI\/ETH pair, the supply of ETH in the pool falls while DAI rises. As a result, the price of ether increases and the stablecoin\u2019s price falls. The impact on market prices depends on the trade size relative to the pool. If the pool\u2019s <span data-descr=\"the total value of assets locked in the smart contracts of decentralised applications\" class=\"old_tooltip\">TVL<\/span> is large and the trade is only a few dollars, the price impact will be small.<\/p>\n<p>LPs can exit a liquidity pool at any time by redeeming their LP tokens. The participant immediately receives the originally deposited coins and the percentage income accrued from trading activity.<\/p>\n<\/div>\n<div class=\"wp-block-text-wrappers-cards single_card\">\n<h2 class=\"card_label\">Which DeFi platforms are built on liquidity pools?<\/h2>\n<p>Most DEXs rely on AMMs using the CPMM model. This type of exchange accounts for nearly 90% of the segment.<\/p>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"225\" src=\"https:\/\/forklog.com\/wp-content\/uploads\/DEX-Mech-Volume-Share-1024x225.png\" alt=\"DEX-Mech-Volume-Share\" class=\"wp-image-218563\" srcset=\"https:\/\/forklog.com\/wp-content\/uploads\/DEX-Mech-Volume-Share-1024x225.png 1024w, https:\/\/forklog.com\/wp-content\/uploads\/DEX-Mech-Volume-Share-300x66.png 300w, https:\/\/forklog.com\/wp-content\/uploads\/DEX-Mech-Volume-Share-768x169.png 768w, https:\/\/forklog.com\/wp-content\/uploads\/DEX-Mech-Volume-Share-1536x337.png 1536w, https:\/\/forklog.com\/wp-content\/uploads\/DEX-Mech-Volume-Share.png 1741w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Data: CoinGecko, <a href=\"https:\/\/www.theblock.co\/data\/decentralized-finance\/dex-non-custodial\/dex-mechanism-volume-share\">The Block<\/a>.<\/figcaption><\/figure>\n<p>The corresponding share for \u201chybrid\u201d DEXs is ~9.5%, and for order-book-based decentralised exchanges ~1%.<\/p>\n<p>Uniswap is the segment\u2019s perennial leader by TVL and <a href=\"https:\/\/www.coingecko.com\/en\/exchanges\/decentralized\">trading volume<\/a>. At the time of writing (20 October 2023) the exchange supports eight networks, including Ethereum, <a href=\"https:\/\/forklog.com\/en\/news\/what-is-arbitrum\">Arbitrum<\/a>, <a href=\"https:\/\/forklog.com\/en\/news\/what-is-optimism-op\">Optimism<\/a>, <a href=\"https:\/\/forklog.com\/en\/news\/what-is-polygon-matic\">Polygon<\/a>, <a href=\"https:\/\/forklog.com\/en\/news\/what-is-base-coinbases-l2\">Base<\/a>, BNB Chain, <a href=\"https:\/\/forklog.com\/en\/news\/what-is-avalanche-avax\">Avalanche<\/a> and Celo.<\/p>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"202\" src=\"https:\/\/forklog.com\/wp-content\/uploads\/Dexes-TVL-Ratings-1024x202.png\" alt=\"Dexes-TVL-Ratings\" class=\"wp-image-218564\" srcset=\"https:\/\/forklog.com\/wp-content\/uploads\/Dexes-TVL-Ratings-1024x202.png 1024w, https:\/\/forklog.com\/wp-content\/uploads\/Dexes-TVL-Ratings-300x59.png 300w, https:\/\/forklog.com\/wp-content\/uploads\/Dexes-TVL-Ratings-768x152.png 768w, https:\/\/forklog.com\/wp-content\/uploads\/Dexes-TVL-Ratings-1536x304.png 1536w, https:\/\/forklog.com\/wp-content\/uploads\/Dexes-TVL-Ratings.png 1629w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">DEX ranking by TVL. Data from <a href=\"https:\/\/defillama.com\/protocols\/Dexes\">DeFi Llama<\/a> as of 20.10.2023.<\/figcaption><\/figure>\n<p>In July, Uniswap Labs unveiled UniswapX\u2014an open-source protocol that aggregates liquidity from decentralised exchanges. In the same month, the developers set a launch window for Uniswap v4: within four months of Ethereum\u2019s Dencun hard fork.<\/p>\n<p>Curve is also popular among crypto traders. It is designed for efficient trading between stablecoins and other like-valued tokens with minimal slippage and fees.<\/p>\n<p>Balancer commands a sizeable market share too. The platform allows pools with three or more tokens.<\/p>\n<p>The table below shows types of liquidity pools and examples of platforms:<\/p>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"528\" src=\"https:\/\/forklog.com\/wp-content\/uploads\/tipy-razlichnyh-pulov-likvidnosti-1024x528.png\" alt=\"tipy-razlichnyh-pulov-likvidnosti\" class=\"wp-image-218566\" srcset=\"https:\/\/forklog.com\/wp-content\/uploads\/tipy-razlichnyh-pulov-likvidnosti-1024x528.png 1024w, https:\/\/forklog.com\/wp-content\/uploads\/tipy-razlichnyh-pulov-likvidnosti-300x155.png 300w, https:\/\/forklog.com\/wp-content\/uploads\/tipy-razlichnyh-pulov-likvidnosti-768x396.png 768w, https:\/\/forklog.com\/wp-content\/uploads\/tipy-razlichnyh-pulov-likvidnosti.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n<div class=\"wp-block-text-wrappers-cards single_card\">\n<h2 class=\"card_label\">What are the advantages of liquidity pools?<\/h2>\n<p>As a cornerstone of a fast-evolving DeFi ecosystem, liquidity pools let any market participant earn passive income on cryptoassets.<\/p>\n<p>Their most important attribute is being permissionless. This means any user can create a liquidity pool and, in effect, a new market. There are no review or approval processes\u2014everything happens in a decentralised, intermediary-free manner.<\/p>\n<p>Both large and small investors can take part\u2014the barrier to entry is minimal. Such openness fosters a more inclusive and equitable financial system, where anyone can add liquidity and help stimulate trading activity.<\/p>\n<p>DEXs run on open-source smart contracts, ensuring transparency and allowing external audits.<\/p>\n<\/div>\n<div class=\"wp-block-text-wrappers-cards single_card\">\n<h2 class=\"card_label\">What are the drawbacks of liquidity pools?<\/h2>\n<p>The DeFi ecosystem is still far from mature. Alongside clear advantages, its key building blocks have several drawbacks:<\/p>\n<ul class=\"wp-block-list\">\n<li>liquidity pools and protocols can be controlled by a narrow group of participants, which runs counter to the ideal of decentralisation;<\/li>\n<li>hack risks due to vulnerabilities and coding errors;<\/li>\n<li>the possibility of a <span data-descr=\"the development team suddenly abandons the project and sells or removes all its liquidity\" class=\"old_tooltip\">rug pull<\/span>;<\/li>\n<li>significant slippage, especially in low-liquidity markets (typical of new and obscure coins and platforms with small TVL).<\/li>\n<\/ul>\n<p>Participants in DeFi are also exposed to impermanent loss (IL). This occurs when the prices of assets in a liquidity pool differ markedly from those at the time of deposit. During sharp market moves it can sometimes be more profitable simply to hold coins in a wallet than to lock them in smart contracts for passive income.<\/p>\n<p>Consider a simplified example.<\/p>\n<p>Suppose a user creates a new DEX pool WBTC\/USDT by depositing 1 WBTC and 20,000 USDT.<\/p>\n<p>The price of bitcoin jumps; within a short time the digital gold rises to 25,000 USDT. Noticing the new exchange, arbitrageurs spot an opportunity to profit from price discrepancies. They begin actively buying <a href=\"https:\/\/forklog.com\/en\/news\/what-is-a-wrapped-token\">\u201cwrapped\u201d<\/a> bitcoin<\/p>\n<p>from the pool until the price reaches parity with the broader market.<\/p>\n<p>The pool now holds mostly USDT, with its WBTC almost depleted.<\/p>\n<p>Initial deposit: 20,000 USDT + 1 WBTC. Given that funds are added to a DEX in equal-value parts, the total value of assets in the pool is equivalent to 40,000 USDT.<\/p>\n<p>After bitcoin\u2019s rally to 25,000 USDT, the pool\u2019s liquidity would be worth 45,000 USDT. But with WBTC exhausted, the pool holds 40,000 USDT and 0 BTC. The opportunity cost is 5,000 USDT.<\/p>\n<p>This difference is impermanent loss. It is called \u201cimpermanent\u201d because prices in the pool may still return to parity with the broader market. The loss becomes permanent only if liquidity providers leave the pool while IL is present.<\/p>\n<p>There are impermanent-loss calculators, for example from <a href=\"https:\/\/dailydefi.org\/tools\/impermanent-loss-calculator\/\">dilydefi.org<\/a> and <a href=\"https:\/\/www.coingecko.com\/en\/impermanent-loss-calculator\">CoinGecko<\/a>.<\/p>\n<p>Trades via liquidity pools can also involve significant slippage, especially with new, little-known and (possibly still) illiquid coins.<\/p>\n<p>Slippage is the difference between the expected price and the actual execution price. The reason is that asset prices in a pool are not static; they change trade by trade as a new equilibrium is found each time.<\/p>\n<p>AMM trades are not instantaneous\u2014between a user\u2019s initiation and confirmation, other, larger transactions may be processed. These can materially affect prices, particularly when pool liquidity is thin.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>We explain liquidity pools, how they work, and their role in DeFi.<\/p>\n","protected":false},"author":1,"featured_media":37937,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"select":"1","news_style_id":"1","cryptorium_level":"2","_short_excerpt_text":"","creation_source":"","_metatest_mainpost_news_update":false,"footnotes":""},"categories":[2113],"tags":[1460,1093,787],"class_list":["post-37936","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cryptorium","tag-amm","tag-defi","tag-dex"],"aioseo_notices":[],"amp_enabled":true,"views":"168","promo_type":"1","layout_type":"1","short_excerpt":"","is_update":"","_links":{"self":[{"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/posts\/37936","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/comments?post=37936"}],"version-history":[{"count":1,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/posts\/37936\/revisions"}],"predecessor-version":[{"id":37938,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/posts\/37936\/revisions\/37938"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/media\/37937"}],"wp:attachment":[{"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/media?parent=37936"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/categories?post=37936"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/forklog.com\/en\/wp-json\/wp\/v2\/tags?post=37936"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}