Match token amounts to the destination pool before moving liquidity
Rebalance liquidity tokens against the destination pool’s deposit ratio, then price the swap and route costs before withdrawing, bridging or redeploying funds.
The Chain Media Editors3 min read
Rebalance tokens before moving liquidity by calculating the destination position’s required amounts, then swapping only the surplus asset. A liquidity position is not a bag of tokens that can be moved intact: you withdraw assets from the old pool and deposit them into a new one, where its rules determine the amounts accepted. The right ratio depends on the destination pool’s design and, for a concentrated-liquidity position, the price range you choose.
How do you calculate the right token ratio?
Start with the destination position, not a generic 50/50 split. In a full-range pool, the pool’s current reserve ratio and token prices determine how much of each asset a deposit needs. In a concentrated-liquidity pool, the selected price range also matters. A position can require both tokens when the price is inside its range, or mostly one token when the price is near or beyond an edge.
Check the destination pool’s chain, token pair, fee tier and position settings. Then estimate the amounts needed at the price you expect when depositing. Compare those amounts with what you will have after withdrawing from the old position. The difference is the rebalance: swap some of the asset you hold in excess for the one you need.
Do not swap half your balance by default. If the destination position needs more of one token, a fixed half-and-half swap can leave you short on that side and long on the other. If the move also crosses chains, use the Fermi Swap versus bridge route checks to assess which route fits. Route choice affects the assets available for the eventual deposit.
When should you rebalance, and in what order?
Rebalance after you know the withdrawal amounts and the destination settings, but before the destination deposit. That gives you a concrete target rather than an estimate based on the old position’s original deposit. The old position may have changed value and token composition as prices moved.
- Record the destination pool and the intended position range or weights.
- Estimate the withdrawal proceeds and destination amounts at current prices.
- Quote a swap for the surplus token and compare the expected output with the amount needed.
- Withdraw, execute the swap or route, then deposit the available amounts into the destination position.
Some interfaces combine steps into one transaction or a migration flow. The underlying operations still matter: assets must be withdrawn, converted if needed, and supplied under the destination pool’s deposit rules. If the route crosses chains, its arrival amount and timing can affect whether the original target ratio still fits.
What costs and execution risks change the calculation?
The best rebalance is the one that leaves enough of both tokens to open the target position after costs. A quoted swap output can differ from the executed amount because of price movement and slippage. Network fees, swap fees and any bridge costs also reduce the balance available for deposit. Compare the total cost of the route with the value of the liquidity position you plan to create.
Before signing, check the swap’s minimum received, the destination amounts, and any minimum deposit settings. Keep a small amount of the chain’s native asset for transaction fees. If the price moves while a cross-chain transfer is pending, recalculate the required amounts before depositing; the earlier quote does not confirm the final ratio.
For most readers, calculate the target position first and trade only the amount needed to meet it. That avoids unnecessary swaps and makes the remaining trade-off visible: a tighter price range may use capital more efficiently within that range, but it can leave the position concentrated in one token or inactive when prices move outside it. The pool’s design sets the ratio; your position settings determine the target.