UnitFlow LogoUnitFlow Docs

Liquidity

The Liquidity section lets you add or remove liquidity from pools and view your active positions across all protocol versions (v2.5, V3, V4).

My Pools

The default view shows all pools where you hold LP tokens. For each position you can see:

  • Token pair and pool address
  • Your LP token balance
  • Your share of the pool (as a percentage)
  • Your estimated share of each token reserve
  • Your estimated USD value (based on pool TVL)
  • Links to the pool on ArcScan explorer

The version filter tabs (All / V2.5 / V3 / V4) let you narrow positions by protocol version.

Adding Liquidity (v2.5)

To add liquidity to a v2.5 pool:

  1. Select two tokens from the token selectors.
  2. Enter an amount for one token — the other is calculated automatically based on the current pool ratio.
  3. If the pool does not exist yet, you must create it first (see Add Liquidity guide).
  4. Approve both tokens if not already approved.
  5. Click Add Liquidity and confirm in your wallet.
  6. LP tokens are minted to your wallet.
ℹ️
URL parameters ?tokenA=0x...&tokenB=0x... pre-select tokens when navigating from the Pools page. The mode=add-more parameter skips the pair creation step.

Creating a New Pool (v2.5)

If no pool exists for a token pair, you can create one via the Create Pairtab. This calls the Factory contract's createPair function. Once created, you can add the initial liquidity which sets the starting price ratio.

Removing Liquidity (v2.5)

From the My Pools view, click Remove on any position. You can select a percentage (25%, 50%, 75%, 100%) of your LP tokens to redeem. The UI shows the estimated amounts of each token you will receive before you confirm.

V3 Positions

V3 liquidity positions are concentrated within a price range and represented as NFTs. The V3 tab in My Pools shows your active V3 positions with their current status. Adding and removing V3 liquidity uses the V3 Position Manager contract.

V4 Positions

V4 positions use the singleton PoolManager architecture. The V4 tab shows positions managed through the V4 Position Manager contract.

Slippage on Liquidity

The liquidity interface also has a slippage setting (gear icon). This controls the minimum acceptable token amounts when adding or removing liquidity, protecting against price movements between submission and confirmation.