> For the complete documentation index, see [llms.txt](https://flype-protocol.gitbook.io/flype-protocol/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://flype-protocol.gitbook.io/flype-protocol/liquidity-exchange/flype-between.md).

# Flype-between

![](https://976579298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftor5sd7sW1BdSm5MKyoe%2Fuploads%2FUeynyXcvkXiILCaxliqx%2FFLYPE%20BETWEEN%20\(1\).jpg?alt=media\&token=8947172b-c090-4708-ac65-47f4275bde48)

### What are we trying to solve?

Let's say you have provided liquidity to the WBTC/ETH pool on Uniswap, and now you would like to move your funds to the DAI/USDC pool, today, you will have to go through the following steps:

* Approve Uniswap to expand your WBTC/ETH-LP Token&#x20;
* Withdraw the underlying pair of tokens (WBTC + ETH)
* Approve Uniswap to expand your WBTC
* Swap WBTC tokens to DAI
* Swap ETH tokens to USDC
* Deposit the DAI + USDC to the DAI/USDC pool

### Flype-between pools in a single swap

With Flype, you can seamlessly move your funds between different liquidity pools and protocols, simply by trading an LP token for another in a single transaction.

It is executed by the following behind-the-scenes actions:<br>

#### On the WBTC/ETH-LP/ETH pool:

* Calculate the Oracle market value of WBTC/ETH-LP.
* Fetch the Oracle market price of ETH.
* Calculate the WBTC/ETH-LP/ETH exchange rate using Flype's IMM mechansim.
* Add WBTC/ETH-LP tokens to the WBTC/ETH-LP/ETH Pool.
* Remove the equivalent ETH value in US Dollar terms from the WBTC/ETH-LP/ETH Pool.

![WBTC/ETH-LP/ETH POOL (ON THE LEFT) ; DAI/USDC-LP/ETH POOL (ON THE RIGHT)](https://976579298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftor5sd7sW1BdSm5MKyoe%2Fuploads%2FnsDwYrByJooYJ8n133uL%2FCHANGE%20LIQUIDITY%20POSITION.jpg?alt=media\&token=70cb136a-cf55-4919-b7c4-5283d3488754)

#### On the DAI/USDC-LP/ETH pool:

* Calculate the Oracle market price of DAI/USDC-LP.
* Calculate the DAI/USDC-LP/ETH exchange rate using Flype's IMM mechansim.
* Add the ETH to the DAI/USDC-LP/ETH Pool.
* Transfer equivalent DAI/USDC-LP tokens value in US Dollar terms from the DAI/USDC-LP/ETH Pool to your wallet.<br>
