LogoLogo
Start hereWhy Flype?Less divergence LossIMMath
  • Vaults
    • UNI-V3 Vaults
    • Strategies
    • Strategy manager
    • Security audit
    • Deployment Addresses
  • Liquidity Exchange
    • Flype Liquidity Exchange
    • Flype-between
    • Flype-in
    • Flype-out
    • Pools
    • Multiple Yields
    • Advantages
  • IMM
    • Background
    • Pools & Oracle Market Price
    • Execution of Trades
    • Three Possible States in IMM
    • The Math Behind IMM
      • IMM Notation
      • IMM Functions
      • IMM Balancing Indicator
      • IMM - Arbitrage Trades
      • Transaction fee
      • Adding Liquidity
      • Removing Liquidity
      • IMM Advantages
      • Simulations and performances
  • Resources
    • FAQ
    • Roadmap
    • References
    • Official Links
Powered by GitBook
On this page
  • What are we trying to solve?
  • Flype-Out in a single swap

Was this helpful?

  1. Liquidity Exchange

Flype-out

PreviousFlype-inNextPools

Last updated 2 years ago

Was this helpful?

What are we trying to solve?

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

  • Give the UNISWAP protocol access to expand the DAI/USDC-LP token

  • Withdraw the underlying pair of tokens (DAI + USDC)

  • Approve Uniswap to expand your USDC

  • Swap the USDC tokens to ETH

  • Approve Uniswap to expand your DAI

  • Swap DAI tokens to ETH

Flype-Out in a single swap

With Flype, all you have to do is swap DAI/USDC-LP token in return for ETH.

The following behind-the-scenes actions are executed by the Flype Protocol on the DAI/USDC-LP/ETH pool:

  • Calculating the Oracle market value of DAI/USDC-LP token

  • Fetching the Oracle market price of ETH

  • Calculating the DAI/USC-LP/ETH exchange rate using Flype's IMM mechansim

  • Adding DAI/USC-LP to the DAI/USC-LP/ETH Pool

  • Transferring the equivalent ETH tokens value in terms of US Dollars from the DAI/USC-LP/ETH Pool to your wallet