How to provide liquidity on Uniswap v3 and v4
What changes for a liquidity provider between Uniswap v2, v3 and v4, how to pick a fee tier and a price range, what a v4 hook can do to your position, and every transaction from approval to burning the LP NFT.
In short
To provide liquidity on Uniswap, you pick a pool (a token pair, a fee tier and, on v4, an optional hook), choose a price range, approve the tokens and mint a position. The position earns a share of the swap fee whenever price trades inside your range.
Uniswap v2 is full range with a 0.30% swap fee, of which LPs keep 0.25% where the protocol fee is on; their share compounds into the pool. Uniswap v3 and v4 are concentrated: each position is an NFT with its own range, and fees accrue separately until you collect them.
Uniswap v4 keeps v3's concentrated liquidity but moves every pool into one PoolManager contract, allows any fee, including dynamic fees, and lets each pool attach a hook contract that runs code around swaps and liquidity changes. Check the hook before you deposit.
The main risks are impermanent loss, a range that price leaves behind, gas that outweighs the fees on small positions, and, on v4, a hook you didn't read.
Uniswap v2 vs v3 vs v4: what is the difference for an LP?
The difference between Uniswap versions, for an LP, is how your liquidity is spread, how fees reach you, and what else can run inside the pool.
- v2
- Full range: your liquidity covers every price from zero to infinity, so it never goes out of range. You receive fungible LP tokens. Every pool charges 0.30%, and fees are added to the reserves, so they compound automatically. Simple, but most of the capital sits at prices that never trade.
- v3
- Concentrated: you choose a lower and upper price, and liquidity only trades (and earns) inside it. Each position is an ERC-721 NFT minted by the NonfungiblePositionManager. Each pool is its own contract with a fixed fee tier. Fees accrue as a claimable balance you collect.
- v4
- The same concentrated maths as v3, positions still ERC-721 NFTs (minted by the v4 PositionManager), but every pool lives inside one singleton PoolManager contract. Fees can be any value or dynamic, pools can pair native ETH directly, and each pool can carry one hook.
The concentration matters. Uniswap's concentrated liquidity docs give the classic example: the v2 DAI/USDC pair used about 0.50% of its capital for trading between $0.99 and $1.01, where most of the volume happened. A v3 LP can put all of it in that band.
How do Uniswap v3 LP NFTs and positions work?
A Uniswap v3 position is an NFT that records one pool, one tick range and an amount of liquidity, and the NFT is the only key to that liquidity. Whoever holds it can add to it, collect its fees, withdraw it or transfer it. Two positions in the same pool with different ranges are two NFTs. Lose the wallet holding the NFT and you lose the position, the same as losing the tokens.
Prices on v3 and v4 are divided into ticks: each tick is a 0.01% price step (price = 1.0001tick). A position's edges must sit on ticks that are a multiple of the pool's tick spacing, which is set by the fee tier on v3 and chosen by the pool creator on v4.
What does Uniswap v4 change for liquidity providers?
Uniswap v4 changes where pools live, how fees are set and what code can run around your liquidity; the range maths is unchanged from v3.
- Singleton PoolManager. Pools are state inside one contract rather than separate contracts, which makes creating a pool and routing multi-hop swaps cheaper, per the v4 vs v3 comparison.
- Flash accounting. Several liquidity changes and swaps can settle with one transfer at the end. That is what lets a position be reshaped or have its fees compounded in a single transaction.
- Native ETH. A v4 pool can hold ETH itself, with no WETH wrapping step.
- Fee accounting. Adding to a v4 position applies its unclaimed fees toward the deposit (any excess is paid out to you); removing any liquidity pays the unclaimed fees out with it.
- Any fee, or a dynamic one. A v4 pool can set any fee from 0% to 100% in 0.0001% steps, or flag itself as dynamic so a hook adjusts the fee over time or per swap.
- Hooks. One optional contract per pool, called at fixed points in the pool's life.
What can a Uniswap v4 hook do to your liquidity?
A Uniswap v4 hook is a contract chosen by the pool creator that the PoolManager calls before or after initialization, adding liquidity, removing liquidity, swaps and donations. According to Uniswap's hooks docs, the hook is part of the pool's identity (its PoolKey) and cannot be added, removed or swapped once the pool exists. That cuts both ways for an LP:
- A beforeAddLiquidity or beforeRemoveLiquidity hook can gate who adds and who withdraws. A hook that can refuse withdrawals can lock your funds.
- A beforeSwap hook on a dynamic-fee pool can set the LP fee per swap, high or low.
- Four return-delta permissions let a hook change the balances of a swap or a liquidity change, which is how hooks take their own fees or run custom curves. A hook with afterRemoveLiquidityReturnDelta can take a cut of what you withdraw.
- Hooks also do useful things: dynamic fees that rise in volatile markets, liquidity mining, limit-order logic, launch protections.
A hook's permissions are encoded in its address, so you can read which callbacks it uses from the address alone; what it does inside them needs its verified source or an audit. Before depositing, check that the hook's code is verified, what permissions it has, and whether it is upgradeable. lp.xyz's pool audits include the pool's exact hook evidence where available and block new deposits on a critical withdrawal-path or seizure finding.
Uniswap fee tiers and tick spacing
Uniswap v3 fee tiers are fixed per pool and each one comes with a set tick spacing; v4 lets the pool creator choose both. The v3 values below come from the v3 factory contract (governance added the 0.01% tier in late 2021, and can enable more, so a chain may offer extra tiers) and Uniswap's fees docs.
- 0.01%, spacing 1
- Stablecoin and pegged pairs. Each usable tick is a 0.01% price step.
- 0.05%, spacing 10
- Highly liquid, correlated pairs. Range edges move in steps of about 0.10%.
- 0.30%, spacing 60
- Volatile pairs. Steps of about 0.60%.
- 1%, spacing 200
- Long-tail and exotic tokens. Steps of about 2.02%.
- v4
- Any static fee from 0% to 100% in 0.0001% increments, any tick spacing, or a dynamic fee managed by the pool's hook. Fixed at pool creation, including whether the fee is dynamic.
Uniswap LP fees are not the whole swap fee on every pool. Since the UNIfication governance proposal passed in December 2025, a protocol fee is on for all v2 pools and selected v3 pools: one sixth of the swap fee on v2 and on 0.30% and 1% v3 pools, one quarter on 0.01% and 0.05% v3 pools. On a $10,000 swap through a 0.30% pool, the trader pays $30; where the protocol fee is on, LPs share $25 and the protocol takes $5. v4 can also carry a separate hook fee. Your share of LP fees depends on how much of the in-range liquidity is yours at the moment of each swap.
How to choose a Uniswap v3 or v4 price range
Choosing a Uniswap price range means trading fee share against how often you need to act: a narrow range earns more per dollar but goes out of range sooner. Here is a worked example with hypothetical numbers.
Say ETH is at $3,000 and you put $10,000 into an ETH/USDC 0.30% pool with a range of $2,500 to $3,600. That range is centred on $3,000 geometrically (its edges multiply to the price squared), so you deposit about 1.667 ETH and 5,000 USDC, and the position provides about 11.5 times the liquidity of the same $10,000 in full range. While ETH trades in the band, it earns about 11.5 times the fees a v2-style deposit would.
- If ETH falls to $2,500, the position is entirely ETH: about 3.492 ETH worth $8,731.02, against $9,166.67 had you held the original 1.667 ETH and 5,000 USDC.
- If ETH rises to $3,600, the position is entirely USDC: about 10,477.23 USDC, against $11,000.00 had you held.
- Outside the band it earns nothing until price returns, and moving the range means a withdraw and a new mint, with gas for each.
The LP strategies guide covers range width and when to rebalance, and the impermanent loss guide works out how much in fees it takes to break even.
How to provide liquidity on Uniswap, step by step
Providing liquidity on Uniswap takes the same sequence on every EVM chain: fund the wallet, pick and check the pool, approve, mint, then collect, decrease and burn.
Step 1: choose the chain and fund the wallet with gas
Every Uniswap action is an EVM transaction paid in the chain's native gas token, and gas is what decides whether a small position can pay for itself. A position you plan to harvest and rebalance on Ethereum mainnet needs to be much larger than one on Base or BNB Chain. Keep some native token aside for the exit.
Step 2: find the pool and check the fee tier and hook
A token pair can have several pools, one per fee tier on v3 and any number on v4 (each fee, tick spacing and hook combination is a separate pool). Pick the pool where the volume is, not the one with the highest fee. On v4, look at the hook address: no hook means the pool behaves like v3; a hook means you need to know what it does.
Step 3: approve the tokens (and Permit2 on v4)
Before minting, the position manager must be allowed to pull your tokens. On v3 that is a standard ERC-20 approval of each token to the NonfungiblePositionManager. On v4, ERC-20s move through Permit2: a one-time ERC-20 approval of each token to the Permit2 contract, then a Permit2 allowance for the PositionManager (a signed permit or an on-chain approval). Native ETH in a v4 pool needs no approval. Approve the amount you mean to deposit rather than an unlimited allowance if you want to limit exposure.
Step 4: set the range and amounts, then mint
Minting creates the position NFT and deposits the tokens. Your range decides the ratio: a range around the current price takes both tokens, a range entirely above it takes only the base token, and one entirely below takes only the quote token (a one-sided position, the basis of a buy or sell wall). Set slippage limits, since price can move before the transaction lands.
Step 5: collect fees
Uniswap v3 and v4 fees sit beside your liquidity until you collect them. On v3 you call collect on the position. On v4 there is no separate collect command: you decrease liquidity by zero, which pays out the accrued fees, as the v4 collect guide describes. Each collection costs gas, so on mainnet collect less often. v2 fees need no collection; they are inside your LP tokens.
Step 6: decrease liquidity
Decreasing liquidity withdraws part or all of the position at the current price and keeps the NFT. On v3, decreasing credits the tokens to the position and a collect call sends them to you (interfaces usually bundle the two). On v4, the withdrawal and the unclaimed fees are paid out in the same transaction.
Step 7: burn the position
Burning a position NFT clears it entirely. On v3 the position must have zero liquidity and nothing left to collect first. On v4 a burn withdraws whatever is left and clears the position in one action. A burned position cannot be reopened; a new range is a new mint.
Which EVM chains can you LP on through lp.xyz?
lp.xyz supports Uniswap v4 and v3 positions on Ethereum, Base, BNB Chain, Robinhood Chain and Arc, and Uniswap v2 pairs on Ethereum, Base, BNB Chain and Arc. Gas is paid in ETH on Ethereum, Base and Robinhood Chain, BNB on BNB Chain, and USDC on Arc. The chains page lists confirmation times and the gas warning lp.xyz shows on Ethereum, where maintaining a position under a few thousand dollars rarely pays for itself.
Providing liquidity on Base
To provide liquidity on Base, follow the same steps with ETH on Base as gas. Base has 2-second blocks with ~200ms pre-confirmations and costs far less per transaction than Ethereum mainnet, which makes it a better home for smaller positions that you plan to harvest and rebalance.
PancakeSwap v3 and Infinity on BNB Chain
PancakeSwap on BNB Chain works much like Uniswap for an LP: v3 pools use fee tiers of 0.01%, 0.05%, 0.25% and 1% with NFT positions you add to, remove from and harvest, and v2 pairs are paired-only at 0.25%, of which 0.17% goes to LPs in the reserves. PancakeSwap Infinity is the singleton design, comparable to Uniswap v4. Infinity CL positions are concentrated with any tick spacing; Infinity Bin positions spread a deposit across price bins, with fees compounding into the bins, so there is no separate claim. BNB Chain is the one chain where lp.xyz quotes and searches two venues side by side. Details are in add and remove liquidity, and the PancakeSwap guide covers fee shares, Infinity hooks and the steps.
What does it cost to provide liquidity on Uniswap?
Providing liquidity on Uniswap costs gas for every approval, mint, collect, decrease and burn, and nothing else on Uniswap's side; the swap fee is what you earn, not what you pay. Through lp.xyz, a 0.25% platform fee applies to the native leg (ETH or BNB, or a stablecoin leg if the pool has no native side) of an add or remove, 5% of the native side of fees you harvest, and a flat fee to create a pool ($30 on Ethereum, $15 on the other chains). Each is shown before you sign, and the full list is on the fees page.
What are the risks of providing liquidity on Uniswap?
The risks of providing liquidity on Uniswap are impermanent loss, out-of-range positions, gas, the tokens themselves and, on v4, the hook.
- Impermanent loss. The ETH example lost $435.65 against holding at the bottom of its range before fees. Narrow ranges amplify it.
- Out of range. A position outside its range is all one token and earns nothing.
- Gas. On Ethereum, a few rebalances can cost more than a small position earns in a month.
- Token risk. Unverified contracts, pausable or owner-controlled tokens, and thin liquidity are the usual ways money is lost.
- Hook risk. A v4 hook can gate withdrawals, change fees and take a share of balances. It is fixed for the life of the pool, so if you don't trust it, use a different pool.
- Approvals and NFTs. An unlimited approval to a malicious contract can drain a token, and whoever holds the position NFT owns the liquidity.
Next steps
- LP strategies: how to pick a range and when to rebalance
- Impermanent loss in concentrated liquidity, with numbers
- How lp.xyz audits pools and v4 hooks
- How to provide liquidity on PancakeSwap v3 and Infinity
- How to provide liquidity on Solana
This guide is general information, not financial advice: providing liquidity can lose money, including all of what you deposit.

