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
  2. The Math Behind IMM

IMM - Arbitrage Trades

PreviousIMM Balancing IndicatorNextTransaction fee

Last updated 3 years ago

Was this helpful?

Let’s calculate how the pool assets’ total value changes as a result of an infinitely small amount trade: dX or dY.

As the trader and the pool are engaged in a 0 sum game, if dV<0, the trader has a profit |dV| and if dV>0, the trader has a loss |dV|.

Where , (In this case q ≠ 1) a trader theoretically has an arbitrage opportunity.

The optimal arbitrage strategy is as follows:

If q>1 and f(q)<1, the buy strategy would be:

If q<1 and f(q)>1, the sell strategy would be:

The arbitrageurs’ activity returns the pool towards balance.