pith. sign in

arxiv: 2604.28017 · v1 · submitted 2026-04-30 · 💻 cs.DC · cs.CE

Characterizing Path-Independent Fees: A Route to Zero Impermanent Loss in CPMMs

Pith reviewed 2026-05-07 05:29 UTC · model grok-4.3

classification 💻 cs.DC cs.CE
keywords path-independent feesconstant product market makersimpermanent lossCPMMfee factorpool invariantliquidity providersarbitrage
0
0 comments X

The pith

Fees that depend only on the pool invariant k=xy make trades in constant-product market makers path-independent and can eliminate impermanent loss for specific starting states.

A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.

Constant-product market makers typically charge fixed-percentage fees that get added back into the pool. When a trade is split into multiple smaller trades, the final amounts can differ from doing it all at once, creating path dependence that makes returns unpredictable for liquidity providers. The paper proves that path independence holds exactly when the overall fee adjustment depends only on the current value of k, the product of the two token reserves. Within this family of fees the authors derive differential equations for how the pool changes and an exact formula for the exchange rate. They also give a tunable family of fees that removes impermanent loss entirely when the pool starts at one particular balance, while showing that no single fee rule can do this for every possible starting balance.

Core claim

The paper establishes that path independence in constant-product market makers is achieved precisely when the combined fee factor depends only on the current pool invariant k = x y. For fees satisfying this condition, the pool state evolves according to a system of ordinary differential equations that admits a closed-form integral solution for the exchange. A parametric family of such fee functions can be chosen to produce zero impermanent loss relative to a given initial pool composition, yet it is proven that no single fee function in the class can achieve zero impermanent loss simultaneously for every possible initial state.

What carries the argument

The combined fee factor that is required to depend only on the current value of the pool invariant k=xy; this dependence ensures that the net effect of any sequence of trades is the same regardless of order or splitting.

Load-bearing premise

Fees are automatically reinvested into the pool and the continuous dynamics of the reserves can be modeled by ordinary differential equations whose right-hand sides depend on the reserves only through the invariant k.

What would settle it

Running the same net trade once as a single large swap and once as a sequence of small swaps under a fee whose factor depends only on k, then checking whether the final reserve ratios are identical; or starting the pool at the specified initial state, applying the parametric fee, and verifying that the liquidity provider's value after price change equals the no-fee hold value.

Figures

Figures reproduced from arXiv: 2604.28017 by Andrey Seoev, Andrey Voronin, Roman Vlasov, Vladimir Gorgadze, Yury Yanovich.

Figure 1
Figure 1. Figure 1: Visualization of fee factor α(x, y) = 1−γ1γ2 over the reserve space. Path-independent fees (left) have level sets parallel to characteristics xy = const, ensuring the exchange outcome depends only on total volume. Path-dependent fees (right) vary along characteristics, making the final state sensitive to trade fragmentation view at source ↗
Figure 3
Figure 3. Figure 3: Relative effective price peff/pno-fee vs. trade size α = ∆x/x0. Standard Uniswap V2 with input fee ϕ1 = 0.3% (blue) and path-independent designs with Φ(k) = 0.003 (red solid) both yield relative prices close to the ideal baseline (magenta). The linear Φ(k) = 0.003 · (k/k0) design (red dashed) shows slightly lower relative prices for larger trades, reflecting its adaptive fee behavior. D. Zero-IL Fee Perfor… view at source ↗
Figure 4
Figure 4. Figure 4: Zero-IL fee function example Φk0 (k) (red) vs. constant fee example Φ = 0.003 (blue dashed). The state-aware fee satisfies Φk0 (k0) = 0 and increases monotonically for k > k0, charging higher rates for larger deviations to offset impermanent loss view at source ↗
read the original abstract

Constant Product Market Makers use fees that are typically fixed proportions of trade size. When these fees are automatically reinvested into the pool, as in Uniswap~V2 and some designs of Uniswap V4, the final state after a trade can depend on how the trade is split into smaller transactions. This path dependence complicates the risk assessment for liquidity providers and affects composability guarantees. We characterize the functional class of fee structures that ensure path independence: the combined fee factor must depend only on the current pool invariant k=xy. For this class, we derive a system of ordinary differential equations governing pool dynamics and obtain a closed-form integral exchange formula. Within this class, we construct a parametric family of fee functions that achieve zero Impermanent Loss for a given initial pool state, and prove that no universal fee function can eliminate Impermanent Loss for all initial states simultaneously. We analyze implications for arbitrage windows and slippage, and validate our theory through controlled simulations. Our framework provides protocol designers with a principled approach to fee optimization that aligns liquidity provider and trader incentives while preserving composability.

Editorial analysis

A structured set of objections, weighed in public.

Desk editor's note, referee report, simulated authors' rebuttal, and a circularity audit. Tearing a paper down is the easy half of reading it; the pith above is the substance, this is the friction.

Referee Report

2 major / 2 minor

Summary. The manuscript characterizes the functional class of fee structures in constant-product market makers (CPMMs) that ensure path-independent pool states when fees are automatically reinvested: the combined fee factor must depend only on the current invariant k = x y. From this class the authors derive a system of ODEs governing pool dynamics, obtain a closed-form integral exchange formula, construct a parametric family of fee functions that achieve zero impermanent loss for any fixed initial pool state, and prove that no single fee function can eliminate impermanent loss for all initial states simultaneously. The work also analyzes implications for arbitrage windows and slippage and validates the results via controlled simulations.

Significance. If the central results hold, the paper supplies a mathematically principled route to fee design that can remove path dependence and impermanent loss for chosen initial states while preserving composability guarantees. The impossibility result for a universal zero-IL fee is a clean negative contribution, and the closed-form exchange formula could be useful for protocol analysis. The framework directly addresses incentive alignment between liquidity providers and traders in designs such as Uniswap V2/V4. The continuous approximation, however, limits immediate applicability to production discrete-trade implementations.

major comments (2)
  1. [Characterization of path-independent fees and ODE derivation] The path-independence characterization (abstract and the derivation that dk is a function of k alone) is obtained in the continuous infinitesimal-trade limit. In actual CPMM implementations trades are atomic and finite; applying a k-dependent factor at the start of each discrete trade produces a jump in k, so the product of factors after a split-trade sequence generally differs from the single-trade case. The manuscript does not prove or demonstrate exact discrete path-independence for the constructed family, which is load-bearing for the claim that these fees “ensure path independence” in CPMMs.
  2. [Zero-IL parametric family and impossibility result] The parametric family that achieves zero IL for a given initial state and the impossibility proof for a universal fee both rely on the integrated ODE solution. Because the zero-IL guarantee is shown only inside the continuous approximation, it is unclear whether the family still yields exactly zero IL (or even path independence) under discrete finite trades. The simulations mentioned in the abstract are not described in sufficient detail to confirm exact invariance for split versus single trades.
minor comments (2)
  1. [Simulation validation] The description of the controlled simulations lacks concrete parameters (number of trades, discretization granularity, exact metric used to test path independence). Adding these details would strengthen the validation section.
  2. [Notation and definitions] Notation for the “combined fee factor” should be introduced with an explicit equation number early in the manuscript so that later references (e.g., to the ODE system) are unambiguous.

Simulated Author's Rebuttal

2 responses · 0 unresolved

We are grateful to the referee for the thorough review and valuable feedback on our manuscript. The comments highlight important considerations regarding the continuous approximation used in our analysis. We address each major comment below and outline the revisions we plan to make to strengthen the paper.

read point-by-point responses
  1. Referee: The path-independence characterization (abstract and the derivation that dk is a function of k alone) is obtained in the continuous infinitesimal-trade limit. In actual CPMM implementations trades are atomic and finite; applying a k-dependent factor at the start of each discrete trade produces a jump in k, so the product of factors after a split-trade sequence generally differs from the single-trade case. The manuscript does not prove or demonstrate exact discrete path-independence for the constructed family, which is load-bearing for the claim that these fees “ensure path independence” in CPMMs.

    Authors: We appreciate the referee's observation that our path-independence result is derived under the continuous approximation. Indeed, the characterization that the combined fee factor depends only on k, leading to dk being a function of k alone, is obtained by considering infinitesimal trades. In discrete atomic trades, as noted, the state jumps, and exact path independence may not hold for finite trade sizes. However, the continuous model provides a principled foundation for fee design, and for small trades relative to pool size, the discrete behavior approximates the continuous case closely. We will revise the manuscript to explicitly state the scope of the path-independence guarantee as holding in the continuous limit. Additionally, we will add a new subsection discussing the discrete implementation, including an analysis of the error introduced by finite trades and numerical examples showing that for the proposed family, the path dependence is minimized. This addresses the load-bearing claim by qualifying it appropriately. revision: yes

  2. Referee: The parametric family that achieves zero IL for a given initial state and the impossibility proof for a universal fee both rely on the integrated ODE solution. Because the zero-IL guarantee is shown only inside the continuous approximation, it is unclear whether the family still yields exactly zero IL (or even path independence) under discrete finite trades. The simulations mentioned in the abstract are not described in sufficient detail to confirm exact invariance for split versus single trades.

    Authors: We agree that both the parametric family for zero IL and the impossibility result are established within the continuous ODE framework. The zero-IL property is exact in the continuous dynamics for the chosen initial state, and the impossibility shows no single fee eliminates IL universally in that model. For discrete trades, the IL will be approximately zero when trades are not too large. Regarding the simulations, we acknowledge that the current description in the manuscript is brief. We will expand the simulation section with full details on the setup (e.g., pool sizes, trade sequences, fee parameters), the metrics used (IL calculation, path comparison), and results including tables or figures comparing single trades to split trades for the parametric family, confirming near-zero IL and path independence in the discrete approximation. We will also make the simulation code available as supplementary material. revision: yes

Circularity Check

0 steps flagged

Path-independence characterization and zero-IL family derived from continuous ODE model without circular reduction

full rationale

The paper posits that path independence holds precisely when the combined fee factor depends only on the current invariant k=xy, then derives the governing ODE system and closed-form integral exchange formula directly from this autonomous dependence. Within the same class it constructs a parametric family solving for zero impermanent loss at a fixed initial state and proves no single function works for all initials. This is a standard modeling choice rather than a circular reduction: the path-independence result follows immediately from the fact that dk is a function of k alone, and the zero-IL family is obtained by solving the resulting integral equation for the target property. No parameters are fitted to data and then relabeled as predictions, no load-bearing self-citations appear, and no ansatz is imported via prior work. The entire derivation remains self-contained inside the stated continuous approximation and reinvestment assumption, warranting only a minimal circularity score.

Axiom & Free-Parameter Ledger

1 free parameters · 2 axioms · 0 invented entities

The central claim rests on modeling fees as a function of the invariant k and assuming continuous dynamics via ODEs; the parametric family introduces free parameters to tune for zero IL at specific states.

free parameters (1)
  • parameters of the parametric fee family
    The family is constructed to achieve zero IL for a given initial state, implying tunable parameters chosen for that purpose.
axioms (2)
  • domain assumption Fee structures can be represented such that the combined fee factor depends only on the current pool invariant k=xy
    This is the key modeling choice used to characterize the path-independent class.
  • domain assumption Pool dynamics under reinvested fees can be modeled by a system of ordinary differential equations
    Invoked to derive the closed-form integral exchange formula.

pith-pipeline@v0.9.0 · 5501 in / 1492 out tokens · 77796 ms · 2026-05-07T05:29:16.817577+00:00 · methodology

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Reference graph

Works this paper leans on

25 extracted references · 25 canonical work pages

  1. [1]

    Financially-stable automated market making for decentralized fixed-rate lending and trading,

    T. Tran, D. A. Tran, and K. Truong, “Financially-stable automated market making for decentralized fixed-rate lending and trading,” in 2024 IEEE International Conference on Blockchain and Cryptocurrency (ICBC), 2024

  2. [2]

    Dynamic fee for reducing impermanent loss in decentralized exchanges,

    I. Lebedeva, D. Umnov, Y . Yanovich, I. Melnikov, and G. Ovchin- nikov, “Dynamic fee for reducing impermanent loss in decentralized exchanges,” in2025 IEEE International Conference on Blockchain and Cryptocurrency (ICBC), 2025

  3. [3]

    Smarter risks for smart contracts: Machine learning approach to credit scoring and risk assessment in defi,

    I. Melnikov, I. Lebedeva, D. Bogutsky, and Y . Yanovich, “Smarter risks for smart contracts: Machine learning approach to credit scoring and risk assessment in defi,” in2025 IEEE International Conference on Blockchain and Cryptocurrency (ICBC), 2025

  4. [4]

    Crosslink: A decentralized framework for secure cross-chain smart contract ex- ecution,

    T. Hossain, F. H. Bappy, T. Shaila Zaman, and T. Islam, “Crosslink: A decentralized framework for secure cross-chain smart contract ex- ecution,” in2025 IEEE International Conference on Blockchain and Cryptocurrency (ICBC), 2025

  5. [5]

    The Impact of the Exchange Fees on Impermanent Loss of Liquidity Providers for Conservative Automated Market Makers,

    R. Vlasov, V . Gorgadze, and A. Barger, “The Impact of the Exchange Fees on Impermanent Loss of Liquidity Providers for Conservative Automated Market Makers,”The Journal of The British Blockchain Association, may 27 2025

  6. [6]

    Automated market makers: A stochastic opti- mization approach for profitable liquidity concentration,

    S. C. Zeller, P.-N. K. Kandora, D. Kirste, N. Kannengießer, S. Reben- nack, and A. Sunyaev, “Automated market makers: A stochastic opti- mization approach for profitable liquidity concentration,” in2025 IEEE International Conference on Blockchain and Cryptocurrency (ICBC), 2025

  7. [7]

    Proactive market mak- ing and liquidity analysis for everlasting options in defi ecosystems,

    H. Mohanty, G. Zaarour, and B. Krishnamachari, “Proactive market mak- ing and liquidity analysis for everlasting options in defi ecosystems,” in 2025 IEEE International Conference on Blockchain and Cryptocurrency (ICBC), 2025

  8. [8]

    Decentralized finance,

    D. A. Zetzsche, D. W. Arner, and R. P. Buckley, “Decentralized finance,” Journal of Financial Regulation, vol. 6, no. 2, pp. 172–203, 2020

  9. [9]

    Uniswap v2 core,

    H. Adams, N. Zinsmeister, and D. Robinson, “Uniswap v2 core,” 2020, whitepaper

  10. [10]

    On the quality of cryptocurrency markets: Centralized versus decentralized exchanges,

    A. Barbon and A. Ranaldo, “On the quality of cryptocurrency markets: Centralized versus decentralized exchanges,”SSRN Electronic Journal, 2021

  11. [11]

    SoK : Decentralized exchanges ( DEX ) with automated market maker ( AMM ) protocols

    J. Xu, K. Paruch, S. Cousaert, and Y . Feng, “Sok: Decentralized exchanges (dex) with automated market maker (amm) protocols,”ACM Computing Surveys, vol. 55, no. 11, p. 1–50, Feb. 2023. [Online]. Available: http://dx.doi.org/10.1145/3570639

  12. [12]

    Uniswap: Impermanent loss and risk profile of a liquidity provider,

    A. A. Aigner and G. Dhaliwal, “Uniswap: Impermanent loss and risk profile of a liquidity provider,” 6 2021. [Online]. Available: http://arxiv.org/abs/2106.14404

  13. [13]

    Impermanent loss in uniswap v3,

    S. Loesch, N. Hindman, M. B. Richardson, and N. Welch, “Impermanent loss in uniswap v3,”arXiv, 11 2021

  14. [14]

    Liquidity providers greeks and imperma- nent gain,

    N. Bardoscia and A. Nodari, “Liquidity providers greeks and imperma- nent gain,”arXiv, 3 2023

  15. [15]

    Generalizing impermanent loss on decentralized exchanges with constant function market makers,

    R. Tangri, P. Yatsyshin, E. A. Duijnstee, and D. Mandic, “Generalizing impermanent loss on decentralized exchanges with constant function market makers,”arXiv, 1 2023

  16. [16]

    Impermanent loss and gain of automated market maker smart contracts,

    H. J. Kim, S. Choi, Y . T. Yoon, and S. Yoo, “Impermanent loss and gain of automated market maker smart contracts,”TechRxiv, 2022

  17. [17]

    Impermanent loss and slippage in automated market mak- ers (amms) with constant-product formula,

    M. Labadie, “Impermanent loss and slippage in automated market mak- ers (amms) with constant-product formula,”SSRN Electronic Journal, 2022

  18. [18]

    A non-custodial portfolio manager, liquidity provider, and price sensor,

    F. Martinelli and N. Mushegian, “A non-custodial portfolio manager, liquidity provider, and price sensor,” Balancer Labs, Tech. Rep., 2019. [Online]. Available: https://docs.balancer.fi/whitepaper.pdf

  19. [19]

    Amm- based dex on the xrp ledger,

    W. H. Cruz, F. Dahi, Y . Feng, J. Xu, A. Malhotra, and P. Tasca, “Amm- based dex on the xrp ledger,” in2025 IEEE International Conference on Blockchain and Cryptocurrency (ICBC), 2025

  20. [20]

    A comparison of impermant loss for various cfmms,

    H. J. Kim, G. M. Lee, J. Lee, S. Kang, S. W. Chae, and J.-S. Park, “A comparison of impermant loss for various cfmms,” in2024 IEEE International Conference on Blockchain (Blockchain). IEEE, 8 2024, pp. 542–548

  21. [21]

    Predictable losses of liquidity provision in constant function markets and concentrated liquidity mar- kets,

    ´Alvaro Cartea, F. Drissi, and M. Monga, “Predictable losses of liquidity provision in constant function markets and concentrated liquidity mar- kets,”Applied Mathematical Finance, vol. 30, 2023

  22. [22]

    Risks and returns of uniswap v3 liquidity providers,

    L. Heimbach, E. Schertenleib, and R. Wattenhofer, “Risks and returns of uniswap v3 liquidity providers,” 5 2022. [Online]. Available: http://arxiv.org/abs/2205.08904

  23. [23]

    Decentraliza- tion or favoritism? an analysis of ethereum transactions and maximal extractable value strategies,

    D. Mancino, A. Leporati, M. Viviani, and G. Denaro, “Decentraliza- tion or favoritism? an analysis of ethereum transactions and maximal extractable value strategies,” in2025 IEEE International Conference on Blockchain and Cryptocurrency (ICBC), 2025

  24. [24]

    Optimized consensus with dagwise: A gnn-enhanced approach for scalable and fault-tolerant dag-based bft,

    N. Diallo, L. Xu, D. Alsagheer, Y . Lu, and L. Shi, “Optimized consensus with dagwise: A gnn-enhanced approach for scalable and fault-tolerant dag-based bft,” in2025 IEEE International Conference on Blockchain and Cryptocurrency (ICBC), 2025

  25. [25]

    Optimal dynamic fees in automated market makers,

    L. Baggiani, M. Herdegen, and L. S ´anchez-Betancourt, “Optimal dynamic fees in automated market makers,” 2025. [Online]. Available: https://arxiv.org/abs/2506.02869