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
  • Buy X:
  • Sell X:

Was this helpful?

  1. IMM
  2. The Math Behind IMM

Transaction fee

PreviousIMM - Arbitrage TradesNextAdding Liquidity

Last updated 3 years ago

Was this helpful?

Let’s consider the trading fee ɛ (ɛ ~0.003) impact with its four possible use cases, as follows:

Buy X:

If a trader wants to buy amount 0<ΔX<Xc:

he should pay:

If a trader wants to sell amount ΔY>0:

he will receive:

Sell X:

If a trader wants to buy amount 0<ΔY< Yc, he should pay:

If a trader wants to sell amount ΔX>0, he will receive:

Implementing fees will change the optimal arbitrage strategy as follows:

  • If q>1 and f(q)<1/(1+É›), the buy strategy would be:

  • if q<1 and f(q)> 1+É›, the sell strategy would be: