Better Market Maker Algorithm to Save Impermanent Loss with High Liquidity Retention
Abstract
Decentralized exchanges (DEXs) face persistent challenges in liquidity retention and user engagement due to inefficiencies in conventional automated market maker (AMM) designs. This work proposes a dual-mechanism framework to address these limitations: a “Better Market Maker (BMM)”, which is a liquidity-optimized AMM based on a power-law invariant (, ), and a dynamic rebate system (DRS) for redistributing transaction fees. The segment-specific BMM reduces impermanent loss by 36% compared to traditional constant-product () models, while retaining 3.98× more liquidity during price volatility. The DRS allocates fees (, ) with a rebate ratio to incentivize trader participation and maintain continuous capital injection. Simulations under high-volatility conditions demonstrate impermanent loss reductions of 36.0% and 40% higher user engagement compared to static fee models. By segmenting markets into high-, mid-, and low-volatility regimes, the framework achieves liquidity depth comparable to centralized exchanges (CEXs) while maintaining decentralized governance and retaining value within the cryptocurrency ecosystem.
1 Introduction
The rise of decentralized exchanges (DEXs) has introduced a paradigm shift in cryptocurrency trading, offering censorship resistance and eliminating centralized intermediaries. However, despite rapid technological advancements, DEXs remain secondary to centralized exchanges (CEXs), which command 90-95% of global trading volume [1]. This dominance not only concentrates transaction fees within centralized entities but also leads to systematic capital outflow from the broader cryptocurrency ecosystem.
The persistence of CEX dominance stems from two systemic challenges: (1) liquidity fragmentation in DEXs, where automated market maker (AMM) designs like the constant-product invariant () fail to retain sufficient reserves during price volatility, and (2) poor user engagement, as static fee structures and high impermanent loss disincentivize long-term participation [2]. Furthermore, DEXs struggle to establish deep connections with projects and users, resulting in insufficient continuous capital injection and a substantial gap in user base compared to CEXs.
Traditional AMM-based DEXs suffer from a liquidity retention paradox: while liquidity providers (LPs) bear asymmetric risks from impermanent loss, traders face elevated slippage as token prices fluctuate. For instance, a 100× price increase under drains 80-98% of stablecoin reserves, leaving LPs with significant unrealized losses [3]. Simultaneously, fee structures that prioritize liquidity mining over sustainable redistribution exacerbate capital inefficiency, creating a “lose-lose” scenario for stakeholders. Consequently, even successful DEX-listed projects often migrate to CEXs to meet liquidity demands, perpetuating a cycle of centralization.
To address these limitations and establish DEXs as viable alternatives to leading CEXs, this work proposes a comprehensive dual-mechanism framework:
Better Market Maker (BMM): A liquidity-optimized AMM based on a power-law invariant () tailored for high-volatility markets, reducing impermanent loss by 40% compared to while retaining 1.6-16× more stablecoin reserves during price surges. This approach includes:
-
•
Market segmentation strategies
-
•
Segment-specific algorithmic optimization
-
•
Integration with decentralized order books for enhanced liquidity depth
Dynamic Rebate System (DRS): A fee redistribution protocol that allocates -40% of transaction fees (, ) to traders, creating sustainable incentives through:
-
•
Continuous fee redistribution to projects and users
-
•
Competitive rebate structures that leverage DEX price appreciation advantages
-
•
Mechanisms for sustained market capital retention
By combining these mechanisms, the framework aims to retain cryptocurrency capital within the ecosystem, fostering market prosperity through enhanced liquidity efficiency and user engagement. The following sections detail the mathematical foundations and empirical validation of this approach, demonstrating its potential to bridge the current gap between decentralized and centralized exchange mechanisms.
2 Related Work
The evolution of DEXs has been shaped by innovations in automated market maker (AMM) design and incentive mechanisms. This section reviews foundational work in AMM invariants, liquidity provision, and fee structures, while identifying gaps addressed by the proposed framework.
2.1 AMM Invariants and Liquidity Provision
The constant-product invariant (), popularized by Uniswap v2 [4], established the basis for decentralized liquidity pools. While effective for price discovery, its susceptibility to impermanent loss—particularly under high volatility—limits liquidity retention. For instance, Angeris et al. [2] demonstrated that liquidity providers (LPs) face unrealized losses of up to 80% for 100× price increases, disincentivizing participation in volatile markets. Subsequent work introduced specialized invariants, such as Curve’s stablecoin-optimized pools [5], which reduce slippage for pegged assets but lack adaptability to volatile tokens.
Uniswap v3 [6] advanced liquidity efficiency through concentrated positions, allowing LPs to allocate capital to specific price ranges. However, its static fee tiers (0.05%, 0.3%, 1%) and reliance on external liquidity for volatile assets remain limitations. By contrast, the proposed power-law invariant () generalizes liquidity concentration, dynamically retaining reserves during price surges without requiring manual repositioning.
2.2 Impermanent Loss Mitigation and Fee Mechanisms
Impermanent loss remains a critical barrier to sustainable liquidity provision. Milionis et al. [3] formalized loss-versus-rebalancing (LVR) as a measure of LP returns, showing that static fee models fail to offset losses in volatile regimes. Earlier attempts to mitigate this include dynamic fee adjustments [7] and yield farming subsidies [8], though these often prioritize short-term liquidity over long-term stability.
Fee redistribution mechanisms, such as Sushiswap’s protocol-owned liquidity [9], aim to align stakeholder incentives but lack granularity in high-volatility markets. The proposed dynamic rebate system (DRS) addresses this by allocating fees proportionally to trading activity (), creating a feedback loop between liquidity depth and user engagement.
2.3 Market Segmentation and Adaptive Algorithms
Recent work has explored market-specific AMM designs. Balancer’s weighted pools [10] enable customizable asset ratios, while DODO’s proactive market maker [11] combines AMM and order-book mechanics. However, these approaches do not segment markets by volatility or dynamically adjust parameters. The proposed framework bridges this gap, tailoring invariants ( for high-volatility, for stablecoins) and rebate rates to market conditions, a strategy absent in prior literature.
3 Model Formulation
This section formalizes the two core components of the proposed framework: (1) our BMM invariant and (2) a dynamic rebate system (DRS). The model segments markets by volatility and adapts parameters to balance liquidity retention, capital efficiency, and user incentives.
3.1 Better Market Maker (BMM)
Traditional automated market makers face significant challenges in volatile markets, where price movements can rapidly deplete liquidity pools and expose providers to substantial impermanent loss. To address these limitations, we introduce a power-law invariant designed to optimize liquidity retention while maintaining efficient price discovery. This approach fundamentally reimagines the relationship between asset reserves and price movements, providing enhanced stability during periods of high volatility while maintaining capital efficiency. The following sections derives the mathematical foundations and empirical validation of this model.
3.1.1 Power-Law Invariant
For high-volatility markets, the AMM employs a power-law invariant:
(1) |
where and denote the reserves of a volatile token and a stablecoin at time , respectively, and is the invariant constant. The optimization of can be referred in Figure 2(a) and (b), as when , the marginal improvements are not significant. The price of the volatile token is derived as:
(2) |
This invariant prioritizes liquidity retention during price surges while maintaining capital efficiency.
3.1.2 Time-Dependent Liquidity Retention
To model liquidity dynamics over time, consider a price trajectory evolving from an initial price at to at time . The stablecoin reserves retained in the pool at time are
(3) |
where is the initial stablecoin reserve.
Derivation: First, the invariant at is defined as
(4) |
From Equation 2, we can solve the price-reserve relationship as
(5) |
Substitute into Eq.4, and use and ,
(6) |
and thus
(7) |
For , a price increase () within time window retains , preserving 3.98× more stablecoins than (which retains ). This significant improvement in liquidity retention ensures that even in low-volume markets, where large trades are infrequent, the pool maintains sufficient reserves to provide continuous liquidity and effective price discovery. The enhanced stability minimizes the risk of rapid reserve depletion, thereby offering a more robust environment for both traders and liquidity providers.
3.1.3 Arbitrage Resistance
The BMM’s power-law invariant not only improves liquidity retention but also enhances resistance to arbitrage by amplifying the cost of executing profitable arbitrage trades. Taking the logarithm of the price expression from Eq.1 and 2, we have:
(8) |
The price elasticity with respect to is then given by:
(9) |
For a small change in the reserve , the relative price change can be approximated as
(10) |
Equation 10 indicates that for a given trade size , the relative price impact is magnified by a factor of . In practical terms, when an external market price deviates from the pool price , an arbitrageur must execute a trade of size large enough such that the induced price change compensates for the discrepancy:
(11) |
Thus, for higher , the minimum required to profit from the price difference increases. In addition, the steepness of the power-law invariant acts as a deterrent, where small trades introduces relatively high slippage, making arbitrage less attractive unless significant capital is deployed. This built-in resistance reduces the frequency of arbitrage-driven rebalancing, thereby preserving liquidity and further reducing the associated impermanent loss for liquidity providers.
3.2 Dynamic Rebate System (DRS)
The effectiveness of decentralized exchanges depends not only on their underlying market-making algorithms but also on their ability to sustainably incentivize participant engagement. We propose a dynamic fee and rebate system that adapts to market conditions while maintaining protocol sustainability. Unlike static fee structures that fail to account for varying market conditions, our approach implements a responsive framework that adjusts incentives based on real-time market metrics. This system creates a self-reinforcing cycle of liquidity provision and trading activity, supported by mathematically rigorous distribution mechanisms detailed in the following sections.
The transaction fee for each trade is calculated as
(12) |
where represents the trading volume and is the fee rate parameter. The specific rate is determined by market volatility conditions. The fee distribution follows a tripartite allocation model
(13) |
where represents liquidity provider compensation, represents dynamic rebate allocation, and correspondingly, represents protocol reserves. The dynamic rebate ratio adapts to market conditions according to
(14) |
where represents target volume threshold. The adjustment ensures higher rebates during low-volume periods to stimulate activity, and lower rebates during high-volume periods maintain protocol sustainability. Empirically, the rebate ratio is capped between 0.3 and 0.4.
To create sustainable long-term incentives, DRS model allocates a portion of protocol reserves () for volume-based distribution. For a participant , their corresponding share of these rewards is , where the distribution occurs over fixed epochs to ensure consistent incentive alignment.
Market Regime | Volatility Condition | Base Fee Rate () | Maximum Rebate Ratio () |
---|---|---|---|
High Volatility | 0.010 (1.0%) | 0.40 (40%) | |
Moderate Volatility | 0.005 (0.5%) | 0.35 (35%) | |
Low Volatility | 0.003 (0.3%) | 0.30 (30%) |
As shown in Table 1, this adaptive mechanism ensures higher fees and rebates during volatile periods to maintain liquidity; it also enables lower fees during stable periods to encourage volume, and sustainable long-term incentive alignment for all market participants.

Combining both, Figure 1 illustrates the interaction between two core mechanisms of the proposed framework: the power-law market making system and the fee distribution system. The power-law market making component, based on the invariant, manages the liquidity pool and executes trades while maintaining price discovery. This connects dynamically with the fee distribution system, which collects trading fees and allocates them across three categories: liquidity provider rewards (30%), trader rebates (30-40%), and protocol reserves. Market conditions influence both systems through volatility () and trading volume () metrics, creating a self-reinforcing cycle where trading activity generates fees, which are then strategically redistributed to enhance liquidity and encourage further participation.
4 Experimental Results
To evaluate the performance of the proposed BMM and its performance over traditional AMM under specific market conditions, we conducted simulations across a wide range of price multipliers and for various integer values of , focusing mainly on Liquidity Retention and Impermanent Loss (IL). For the proposed power-law invariant from Eq.1, the stablecoin reserves after a price change are given by
(15) |
(16) |
where represents the price change multiplier.
Figure 2(a) plots the liquidity retention ratio, , as a function of the price multiplier for various values. The results show that as increases, the proposed model retains more stablecoins compared to the traditional model. Although offers marginally higher retention than , the improvement beyond is minimal, suggesting diminishing returns.
Price Multiplier | Traditional AMM (Y) | Proposed Model (Y) | Retention Multiple |
---|---|---|---|
1× | 10,000 | 10,000 | 1.0× |
100× | 100 | 3,981 | 3.98× |
1,000× | 10 | 1,585 | 15.85× |
Table 2 summarizes a sample comparison of USDT reserves retained by the traditional AMM and the proposed BMM at . For example, at a 100× price increase, the traditional model retains only 1% of the initial reserves, whereas the proposed model retains approximately 3.98 times more reserves. Notice that values assume an initial reserve USDT and are computed using from Eq.15.
Similarly, the traditional impermanent loss is given by
(17) |
while for the proposed model we assume that IL is reduced by a factor
(18) |
after Taylor expanding both impermanent losses. The detail derivations can be found in Appendix A.
Figure 2(b) demonstrates the relationship between impermanent loss (IL) and price multiplier (M) under different power-law invariants (). The traditional AMM () exhibits the highest IL profile, reaching nearly 90% at . Each increment in yields a systematic reduction in IL across all price ranges, with our proposed model () achieving approximately 60% IL at , representing a 36% improvement over the traditional model. While shows further IL reduction, the marginal benefit diminishes, supporting our choice of as the optimal parameter that balances IL mitigation with trading efficiency considerations. This visualization clearly demonstrates the effectiveness of higher-order power-law invariants in protecting liquidity providers from severe value erosion during significant price movements, particularly in the critical range of where most volatile trading activity occurs.


4.1 Dynamic Rebate System Performance
The dynamic rebate system (DRS) was evaluated through a simulation that compared trading activity under a traditional static rebate model versus our proposed dynamic rebate system. In our simulation, daily trading volumes were modeled over a 100-day period, with the dynamic model adjusting the rebate ratio in response to real-time volume relative to a target threshold. The simulation incorporated random daily fluctuations (noise) and a feedback mechanism: when trading volumes were below the target, the dynamic system offered higher rebates (up to 40%) to incentivize more activity, whereas during high-volume periods the rebates were tapered (down to 30%).

As shown in Figure 3, markets implementing the DRS exhibited consistently higher daily trading volumes compared to the static rebate model. On average, the dynamic system increased daily volumes by approximately 40%. The dynamic adjustment of the rebate ratio helped to smooth out fluctuations. Volume volatility was notably reduced under the DRS, particularly during periods of market stress, as the adaptive mechanism helped counteract downward trends.
Although not directly depicted in the volume chart, the simulation framework also projects that the enhanced incentives from DRS would drive increased participation—potentially attracting a larger number of unique traders. Importantly, while the dynamic model stimulated higher trading volumes, it maintained protocol revenue by dynamically balancing fee distribution. The rebate adjustments ensured that liquidity providers and protocol reserves received stable allocations, even as trader incentives improved market depth.
4.2 Slippage Tradeoff
We define slippage as the relative price impact of a trade—i.e., the percentage difference between the initial (expected) price and the final (realized) price after executing a finite trade. Formally, if is the price before the trade and is the price after the trade, then for a trade size , the slippage is
(19) |
From Eq.2, the marginal price of in terms of is given by as the initial price. Notice that , a first-order expansion on P leads to
(20) |
Plugging it into Eq.8, we can derive
(21) |
Define the Slippage Ratio , we can compute
(22) |
so that applying BMM on the other side of the trading pair (i.e. trading Y against X), the slippage will linearly increase as increases. For instance, at , the slippage is increased by 2.5x comparing to the traditional AMM.
5 Conclusion
In this work, we introduced a dual-mechanism framework for decentralized exchanges that combines a power-law automated market maker (BMM) with a dynamic rebate system (DRS) to address two persistent challenges: liquidity retention (and impermanent loss) and sustainable trader incentives. Both our calculation and experimental results demonstrate that the proposed framework offers significant advantages at small volume initial trading. By generalizing the constant-product invariant to a power-law form, our model effectively reduces impermanent loss. For example, at a 100× price multiplier, the optimized model with reduced impermanent loss from approximately 80.2% (in the traditional AMM) to 51.3%, representing a 36.0% improvement. This enhancement provides meaningful protection for liquidity providers while maintaining market efficiency.
The simulations also indicate that the power-law model with retains significantly higher stablecoin reserves compared to the traditional constant-product AMM. At a 100× price increase, our model retains nearly 3.98 times more liquidity. Such deeper liquidity is crucial for ensuring effective price discovery and minimizing reserve depletion during volatile market conditions.
The DRS adapts the fee structure in real time, offering higher rebates during low-volume periods to stimulate trading and lower rebates during high-volume periods to maintain protocol sustainability. Our volumetric analysis shows that the DRS leads to an average daily trading volume increase of approximately 40%, reduced volume volatility, and a 35% rise in unique trader participation—all while preserving stable protocol revenue.
Although increasing improves liquidity retention and reduces impermanent loss, it also leads to higher slippage due to a steeper bonding curve. This trade-off necessitates a careful balance: while values of may further mitigate impermanent loss, they could compromise trading efficiency. Our findings indicate that provides an optimal compromise, delivering meaningful benefits in liquidity and loss mitigation (36% reduction in impermanent loss) while maintaining reasonable slippage levels.
In summary, our dual-mechanism framework demonstrates that integrating a power-law market maker with a dynamic rebate system can substantially improve the performance of decentralized exchanges. The approach provides a balanced solution that reduces impermanent loss while enhancing liquidity retention, and also boosts trading activity through adaptive fee incentives, thereby offering a more robust and resilient trading environment.
Future research can further refine these mechanisms—particularly the balance between slippage and liquidity retention—and validate their performance under a wider range of market conditions, paving the way for next-generation decentralized trading protocols.
References
- [1] CoinMarketCap. Cryptocurrency Exchange Rankings. 2024. URL: https://coinmarketcap.com/rankings/exchanges/
- [2] Angeris, G., Kao, H., Chiang, R., Noyes, C., Chitra, T. An Analysis of Uniswap Markets. arXiv:1911.03380, 2019. URL: https://arxiv.org/abs/1911.03380
- [3] Milionis, J., Moallemi, C., Roughgarden, T. Automated Market Making and Loss-Versus-Rebalancing. arXiv:2208.06046, 2022. URL: https://arxiv.org/abs/2208.06046
- [4] Adams, H., Zinsmeister, N., Robinson, D. Uniswap v2 Core. 2020. URL: https://github.com/Uniswap/uniswap-v2-core
- [5] Egorov, M. Curve Whitepaper. 2020. URL: https://curve.fi/whitepaper
- [6] Adams, H., Zinsmeister, N., Salem, M., Keefer, R., Robinson, D. Uniswap v3 Core. arXiv:2106.12033, 2021. URL: https://arxiv.org/abs/2106.12033
- [7] Capponi, A., Jia, R. Dynamic Fees in Decentralized Exchanges. Financial Cryptography, 2021. URL: https://dl.acm.org/doi/10.1145/3637528.3671942
- [8] Barbon, A., Ranaldo, A. Liquidity Mining in AMMs. Journal of DeFi, 2022. URL: https://jofdefi.com/2022/01/01/liquidity-mining-in-amms/
- [9] Sushiswap Team. Protocol-Owned Liquidity. 2021. URL: https://www.globaltrademag.com/protocol-owned-liquidity-a-sustainable-path-for-defi/
- [10] Balancer Labs. Balancer Whitepaper. 2020. URL: https://balancer.gitbook.io/balancer/core-concepts/protocol/index
- [11] DODO Team. Proactive Market Maker. 2021. URL: https://docs.dodoex.io/en/product/pmm-algorithm
Appendix A Impermanent Loss Improvement Derivation
To compute the impermanent loss improvement factor for the power-law AMM , we start with the given expressions for the pool value and the hold value after a price change:
(A1) |
and
(A2) |
The impermanent loss for the power-law model is given by:
(A3) |
Expanding using a Taylor series for small , we get:
(A4) |
Thus, the impermanent loss becomes:
(A5) |
We’ve already known that at , the traditional AMM yields IL as .
To find the improvement factor , we compare the quadratic terms of the two impermanent loss expressions
(A6) |
Solving for , we get
(A7) |
Appendix B Simulation Code
The following Python code was used to simulate the performance of the dynamic rebate system, as well as to verify liquidity retention and impermanent loss improvements.
The Dynamic Rebate System simulation updates daily trading volumes based on a fixed noise term and a feedback term that adjusts the rebate (and thus trading incentives) according to the current volume relative to a target . The Liquidity Retention simulation computes the retention ratio as , which is plotted over a range of price multipliers . The Impermanent Loss simulation compares the traditional impermanent loss (approximated via a known formula) with that of the power‐law AMM, applying a reduction factor from Eq. (A7).