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

Was this helpful?

  1. IMM

Execution of Trades

A purchase of LP-B in exchange for LP-A will be executed by the following actions:

On the LP-A/ETH pool:

  • Calculate the Oracle market value of LP-A tokens.

  • Fetch the Oracle market price of ETH.

  • Calculate the LP-A/ETH exchange rate using Flype's IMM mechansim.

  • Add LP-A tokens to the LP-A/ETH Pool.

  • Remove the equivalent ETH value in US Dollar terms from the LP-A/ETH Pool.

On the LP-B/ETH pool:

  • Calculate the Oracle market price of LP-B.

  • Calculate the LP-B/ETH exchange rate using Flype's IMM mechansim.

  • Add the ETH to the LP-B/ETH Pool.

  • Transfer equivalent LP-B tokens value in US Dollar terms from the LP-B/ETH Pool to your wallet.

PreviousPools & Oracle Market PriceNextThree Possible States in IMM

Last updated 2 years ago

Was this helpful?