Flash Pool Switch

It moves a liquidity position from one pool to another in one transaction. The position leaves the first pool and enters the second at once, or not at all.

On this page
On the roadmap
V3 Expansion
Pools
Those that handle deposits/ withdrawals in one transaction, each with its own adapter.
Who signs
For your own position
Bounds
The minimum you withdraw and add as liquidity.
Transactions
1

Use this product to move liquidity to a different pool. Withdrawal and deposit settle together, rather than leaving tokens in your wallet between separate transactions.

  • Better fee tier: Move WETH/USDC liquidity to the fee tier where most trading volume is happening.
  • Out-of-range liquidity: Move liquidity to a new range around the current price when the old range stops earning fees.
  • More active pool: Move a project’s liquidity from an older pool to one with higher trading volume.

From one pool to the next

  1. You choose the position and the target. The position you hold, the pool it moves to and, for a concentrated pool, the new range.
  2. You set the bounds. The least of each token the withdrawal returns, the least liquidity the deposit creates, and a deadline.
  3. You approve the position to the Flash Pool Switch contract, and send the switch yourself.
  4. The contract withdraws the position through the first pool’s adapter and checks what came out against your bounds.
  5. It deposits through the second pool’s adapter, after the fee. When the new range needs a different mix of the two tokens, a swap within your bounds rebalances them first.
  6. The new position goes to your wallet, and any token the new pool leaves over returns to you in the same transaction.

Position moved to another fee tier

WETH/USDC position moves to another fee tier, at the same range.

Pool switch
Out of the old pool
5 WETH and $15,000 USDC
Fee (0.20%)
0.01 WETH and $30 USDC
Into the new pool
4.99 WETH and $14,970 USDC
New position
In your wallet
Transactions
1

What a switch guarantees

  • All or nothing: If the deposit fails, the withdrawal reverts and your position stays in the old pool.
  • Within your limits: Withdrawals and deposits must meet your minimums.
  • Yours assets: The contract acts only on the position you approved, the new position and every leftover go to your wallet.
  • Pools settle at once: Both pools must support withdrawals and deposits in one transaction through their adapters.