Skip to content
Blockchain Post

News on how crypto works

Add liquidity to a DEX pool, receive LP tokens

To add liquidity to a DEX pool step by step, supply equal values of both tokens; the pool mints LP tokens that represent your share of its reserves.

The Blockchain Post Editors5 min read#e73086

Add liquidity to a DEX pool, receive LP tokens

Supply equal values of both pool tokens through the DEX’s add-liquidity page. The pool mints LP tokens to your wallet to record your share of its reserves.

The Beefy app shows why matching that receipt matters: its Beefy Vaults accept specific LP tokens, and supported strategies automatically compound rewards. Read what a Beefy app LP token represents to see why the receipt is central to a vault deposit.

This walkthrough covers one Uniswap V2-style pool. A Uniswap v3-style pool returns an NFT position instead of a fungible ERC-20 LP token, so a vault expecting the latter cannot accept that position.

What to have ready

Adding liquidity requires both pool tokens in one wallet, the vault’s LP token address, and enough native coin for gas.

  • Researcher: Find the vault’s listed LP token contract and confirm the DEX pool uses that exact contract, on the correct chain. A similar pair name is not enough.
  • Signer: Hold both tokens in the wallet and keep native coin for gas on the approvals and deposit. For example, a BNB Chain transaction needs BNB for gas.
  • Record-keeper: Be ready to save the transaction hash and LP amount received for the team’s tracking and tax records.

How to add liquidity to a DEX pool step by step

Follow these steps on the DEX’s add-liquidity page; each approval or deposit needs a wallet signature.

  1. Researcher: Open the matching pool. Find the pool whose LP token contract matches the vault’s listed address, and confirm the chain and token pair. Result: the team has the intended pool open, such as the matching Uniswap V2 or PancakeSwap pool.
  2. Signer: Connect the wallet on that chain. Use the wallet holding both tokens and native coin for gas. Result: the DEX shows the correct account and network.
  3. Signer: Approve token A and token B. Each ERC-20 token needs its own approval before the router can pull it. Sign both approval transactions and wait for each to complete. Result: the router is authorized to use both tokens up to the approved amounts.
  4. Signer: Enter one token amount. The DEX fills in the matching value of the other token based on the pool’s current ratio. Review the amounts and quote, then confirm add liquidity in the wallet. Result: the deposit transaction is submitted. The pool mints LP tokens in proportion to the signer’s share of its reserves.
  5. Record-keeper: Log the completed transaction. Save the transaction hash and the LP amount received. Result: the team has a record to reconcile against its wallet and accounting.
  6. Confirm the receipt. Wait for the transaction to complete, then check the wallet balance at the vault’s listed LP token contract address. Result: the LP token balance appears at the expected address, confirming the task is done.

A common mistake is expecting any position from a pool to work in a vault. Say the signer adds liquidity to a v3-style pool and expects ERC-20 LP tokens; the pool issues an NFT position instead. The vault expecting the listed ERC-20 contract cannot accept that NFT. With the balance confirmed, open the matching Beefy Vault and check that its deposit screen recognizes the LP token; this moves the team to the vault deposit and confirms it has the right receipt.

Related

These related questions cover the quote you accept and how to reverse a deposit.

How much slippage should I set when adding liquidity?

Set slippage tolerance to cover the price movement you are willing to accept between the quote and execution. The needed tolerance depends on how much the pool price moves while the transaction is pending; a wider setting can allow a less favorable result. Review the quoted token amounts before signing.

How do I remove liquidity from a pool?

Open the same pool’s remove-liquidity page, choose the LP amount to redeem, and confirm the transaction. The pool burns those LP tokens and returns the corresponding share of its token reserves, subject to the pool’s current balances and prices.

What to know after receiving LP tokens

What happens to my LP tokens if one token’s price drops?

Your LP tokens still represent a share of the pool, but that share’s value and token mix can change as prices move and traders rebalance the reserves. Compared with simply holding both tokens, this can result in impermanent loss.

Can I add liquidity with only one token?

A Uniswap V2-style pool deposit requires both tokens in the pool’s current ratio. A DEX may offer a separate swap as part of its interface, but that is an additional transaction and does not change the pool’s two-token deposit requirement.

Do I earn trading fees while my LP tokens sit in a vault?

Trading fees accrue to the pool and affect its reserves. A vault’s strategy may collect and compound rewards according to its design, but the exact handling depends on that vault. Read its details before depositing.