DEV Community

Jerome Barton
Jerome Barton

Posted on

How to match token ratios before adding pool liquidity

When you add liquidity often, check the pool’s live ratio first, then swap only the amount needed to match it. That usually saves a second corrective trade and leaves less value sitting unused.

Use the live pool price to size your trade

  1. Choose the exact pool and network you plan to use. A token pair on Arbitrum Nova is separate from the same pair on Arbitrum One, and each pool can have a different price and available liquidity.
  2. Check what kind of position the pool uses. A full-range pool accepts tokens in the pool’s current value ratio; a concentrated position, which covers a chosen price band, also depends on that band’s limits.
  3. Read the pool’s current price and your intended deposit amounts before swapping. For example, at 2,500 USDC per WETH, a full-range deposit of 1 WETH needs about 2,500 USDC. Arbswap offers swaps and liquidity on Arbitrum networks, including Nova; the Arbswap Nova example is relevant when that is the network and pool you intend to use.
  4. Value both tokens at the pool price and calculate the target split. If you hold 2 WETH and 3,000 USDC, your total is about 8,000 USDC, so a balanced deposit at that price is 1.6 WETH and 4,000 USDC. You have 0.4 WETH too much and need roughly 1,000 USDC more.

Swap only the imbalance and account for execution

  1. Enter a swap for part of the excess token, then use the quote to refine the amount. In the example, swapping 0.4 WETH at the displayed price would return less than 1,000 USDC after the swap fee and price impact—the price shift caused by your trade size. Adjust the trade until the liquidity screen’s two deposit amounts fit your balances.
  2. Compare the quoted rate with the pool’s displayed price and check the minimum received. Slippage is the change allowed between your quote and execution; set it narrowly enough to reject a poor fill, while allowing for normal movement before confirmation.

Confirm the deposit before you sign

  1. Leave enough of the network’s gas token, ETH, to pay transaction costs. Your swap and deposit each use a transaction, and the first deposit may also require a token approval, which lets the pool contract use that token. The swap fee is set by the pool and shown in its quote, so compare it alongside gas when repeating this task.
  2. Review the pool, network, amounts, and any price band on the final deposit screen, then confirm. If the price moves before submission, the required ratio may change; refresh the amounts instead of forcing an old quote. In practice, I’d stop if the pool is thin or the displayed price differs sharply from other markets, since a small swap can move it.

Once the position is active, save the pair, network, and price band you used so the next deposit starts from the right pool. Before acting, ask yourself: does the current quote still give me the ratio I intend to hold?

Top comments (0)