Liquidity Pools
A DeFi liquidity pool is a smart contract that locks tokens to ensure liquidity for those tokens on a DEX. Users who provide tokens to the smart contract are called liquidity providers.
Last updated
A DeFi liquidity pool is a smart contract that locks tokens to ensure liquidity for those tokens on a DEX. Users who provide tokens to the smart contract are called liquidity providers.
Last updated
DeFi liquidity pools emerged as an innovative and automated way of solving the liquidity challenge on decentralized exchanges. They replace the traditional order book model used by centralized crypto exchanges, which was lifted directly from the established financial markets.
The simplest version of a DeFi liquidity pool holds two tokens in a smart contract to form a trading pair.
Letโs use NULS (NULS) and USD Coin (USDC) as an example, and to make it simple, the price of NULS can be equal to 1,000 USDC. Liquidity providers contribute an equal value of NULS and USDC to the pool, so someone depositing 1 NULS would have to match it with 1,000 USDC.
The liquidity in the pool means that when someone wants to trade NULS for USDC, they can do so based on the funds deposited, rather than waiting for a counterparty to come along to match their trade.
Liquidity providers are incentivized for their contribution with rewards. When they make a deposit, they receive a new token representing their stake, called a pool token. In this example, the pool token (LP) would be USD/NULS.
The share of trading fees paid by users who use the pool to swap tokens is distributed automatically to all liquidity providers proportionate to their stake size. So if the trading fees for the USDC-NULS pool are 0.25% and a liquidity provider has contributed 10% of the pool, theyโre entitled to 10% of 0.25% of the total value of all trades.
When a user wants to withdraw their stake in the liquidity pool, they burn their pool tokens and can withdraw their stake.