Search papers, labs, and topics across Lattice.
This paper characterizes fee structures in Constant Product Market Makers (CPMMs) that ensure path independence, where the final pool state is independent of how a trade is split. They show that path independence requires the combined fee factor to depend only on the pool invariant k=xy, and derive a closed-form integral exchange formula for this class. The authors construct a parametric family of fee functions that achieve zero Impermanent Loss (IL) for a given initial pool state, but prove no universal fee function can eliminate IL for all initial states.
CPMMs can eliminate Impermanent Loss for specific initial pool states with a novel parametric fee structure, but a universal solution remains elusive.
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.