Skip to content
DeFi & Web3Beginner

How Liquidity Pools Work and What You Deposit

A liquidity pool is a smart contract that prices swaps with a formula, and providers earn a share of trading fees. You need both tokens and gas.

Vahe HakobyanVahe HakobyanEditor-in-chief Updated Oct 6, 20263 min readFact-checked
A dark navy scene of glass tanks of glowing green liquid and blank coins.
Illustration: World-Crypt
On this page
Key takeaways
  • Uniswap launched in 2018 on Ethereum.
  • Impermanent loss can reduce your withdrawal value.
  • Keep tax records of deposits, withdrawals, and fees.
  • A pool contract can have bugs or be drained.

Short answer

A liquidity pool is a smart contract that holds a pair of tokens and prices swaps with a formula. You deposit both tokens, receive LP tokens, and earn a share of swap fees.

This model became common on Ethereum after 2018. Each trade changes the pool balance and your share of it.

How Does a Liquidity Pool Work?

A liquidity pool is a smart contract that holds a pair of tokens and lets users swap one for the other. Uniswap, launched on November 2, 2018, uses this model on Ethereum. The pool prices each trade with the constant product rule, written as x times y equals a constant. Each swap pays a fee, and liquidity providers earn a share of those fees based on their deposit.

What Do You Need Before You Start?

Before you deposit, you need a wallet you control. On Ethereum, you also need ETH for gas. You must hold both tokens and select the correct network.

Check before you deposit

  • A wallet that can sign transactions
  • The correct network selected
  • Enough ETH for gas
  • Both tokens in the pair
  • The pool contract address

How Do You Provide Liquidity Step by Step?

To provide liquidity, you add both tokens to the pool contract. The contract records your share. Check each approval and confirmation before you sign.

  1. 1Check the pool contractConfirm the token pair, network, and contract address.
  2. 2Approve token spendingApprove only the amount you need, not unlimited spending.
  3. 3Add both tokensDeposit the pair in the ratio the pool requires.
  4. 4Receive LP tokensThe contract sends LP tokens that represent your share.
  5. 5Withdraw your shareBurn the tokens and confirm the withdrawal.

What Should You Do After Depositing?

After you deposit, your share can change in value. Impermanent loss happens when pool prices diverge from holding the tokens. The IRS treats crypto as property, so keep records of deposits, withdrawals, and fees.

  • Your pool share over time
  • Admin controls and upgrade keys
  • Your transaction hash and date
  • Any change in the pool token ratio

Frequently asked questions

Compare the fee share and the pool's price movement. Higher fees often come with higher price risk.

Usually no, beyond your deposit. A hack or a failing token can wipe out the pool.

Your pool share may have little value. Recovery is usually not possible.

Yes, on Ethereum a withdrawal is a transaction that needs gas. You also pay gas to approve and deposit.

Was this guide helpful?
Written byVahe HakobyanVahe Hakobyan is the editor-in-chief of World-Crypt. He covers bitcoin, markets and regulation, and leads the newsroom that fact-checks every story before it goes live.