This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

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 (XnY=KX^{n}Y=K, n=4n=4), and a dynamic rebate system (DRS) for redistributing transaction fees. The segment-specific BMM reduces impermanent loss by 36% compared to traditional constant-product (XY=KXY=K) models, while retaining 3.98× more liquidity during price volatility. The DRS allocates fees (γV\gamma V, γ{0.003,0.005,0.01}\gamma\in\{0.003,0.005,0.01\}) with a rebate ratio ρ[0.3,0.4]\rho\in[0.3,0.4] 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 (XY=KXY=K) 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 XY=KXY=K 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 (XnY=KX^{n}Y=K) tailored for high-volatility markets, reducing impermanent loss by \sim40% compared to XY=KXY=K 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 ρ=30\rho=30-40% of transaction fees (γV\gamma V, γ{0.003,0.005,0.01}\gamma\in\{0.003,0.005,0.01\}) 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 (XY=KXY=K), 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 (XnY=KX^{n}Y=K) 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 (ρ[0.3,0.4]\rho\in[0.3,0.4]), 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 (n=4n=4 for high-volatility, n=1n=1 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:

XtnYt=KX_{t}^{n}Y_{t}=K (1)

where XtX_{t} and YtY_{t} denote the reserves of a volatile token and a stablecoin at time tt, respectively, and KK is the invariant constant. The optimization of n=4n=4 can be referred in Figure 2(a) and (b), as when n>4n>4, the marginal improvements are not significant. The price PtP_{t} of the volatile token is derived as:

Pt=dYtdXt=nKXn+1=nYtXtP_{t}=-\frac{dY_{t}}{dX_{t}}=-\frac{nK}{X^{n+1}}=\frac{nY_{t}}{X_{t}} (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 PtP_{t} evolving from an initial price P0P_{0} at t=0t=0 to PtP_{t} at time tt. The stablecoin reserves YtY_{t} retained in the pool at time tt are

Yt=Y0(PtP0)nn+1Y_{t}=Y_{0}\cdot\left(\frac{P_{t}}{P_{0}}\right)^{\frac{n}{n+1}} (3)

where Y0Y_{0} is the initial stablecoin reserve.

Derivation: First, the invariant at t=0t=0 is defined as

K=X0nY0K=X_{0}^{n}Y_{0} (4)

From Equation 2, we can solve the price-reserve relationship as

Xt=nYtPtX_{t}=\frac{nY_{t}}{P_{t}} (5)

Substitute XtX_{t} into Eq.4, and use K=X0nY0K=X_{0}^{n}Y_{0} and P0=nY0X0P_{0}=\frac{nY_{0}}{X_{0}},

(nYtPt)nYt=KYtn+1=KPtnnn\left(\frac{nY_{t}}{P_{t}}\right)^{n}Y_{t}=K\implies Y_{t}^{n+1}=\frac{KP_{t}^{n}}{n^{n}} (6)

and thus

Yt=Y0(PtP0)nn+1Y_{t}=Y_{0}\cdot\left(\frac{P_{t}}{P_{0}}\right)^{\frac{n}{n+1}} (7)

For n=4n=4, a 100×100\times price increase (Pt=100P0P_{t}=100P_{0}) within time window tt retains Yt=Y01004539.8Y0Y_{t}=Y_{0}\cdot 100^{\frac{4}{5}}\approx 39.8Y_{0}, preserving 3.98× more stablecoins than XY=KXY=K (which retains Yt=100Y0=10Y0Y_{t}=\sqrt{100}Y_{0}=10Y_{0}). 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:

logPt=log(nK)(n+1)logXt\log P_{t}=\log(nK)-(n+1)\log X_{t} (8)

The price elasticity with respect to XtX_{t} is then given by:

dlogPtdlogXt=(n+1)\frac{d\log P_{t}}{d\log X_{t}}=-(n+1) (9)

For a small change in the reserve ΔX\Delta X, the relative price change can be approximated as

ΔPtPt(n+1)ΔXXt\frac{\Delta P_{t}}{P_{t}}\approx-(n+1)\frac{\Delta X}{X_{t}} (10)

Equation 10 indicates that for a given trade size ΔX\Delta X, the relative price impact is magnified by a factor of n+1n+1. In practical terms, when an external market price PextP^{ext} deviates from the pool price PtP_{t}, an arbitrageur must execute a trade of size ΔX\Delta X large enough such that the induced price change compensates for the discrepancy:

PextPt(n+1)PtXtΔXP^{ext}-P_{t}\gtrsim(n+1)\frac{P_{t}}{X_{t}}\Delta X (11)

Thus, for higher nn, the minimum ΔX\Delta X 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 FF for each trade is calculated as

F=γVF=\gamma V (12)

where VV represents the trading volume and γ{0.003,0.005,0.01}\gamma\in\{0.003,0.005,0.01\} is the fee rate parameter. The specific rate γ\gamma is determined by market volatility conditions. The fee distribution follows a tripartite allocation model

F=Flp+Fr+FpF=F_{lp}+F_{r}+F_{p} (13)

where Flp=0.3FF_{lp}=0.3F represents liquidity provider compensation, Fr=ρFF_{r}=\rho F represents dynamic rebate allocation, and correspondingly, Fp=(0.7ρ)FF_{p}=(0.7-\rho)F represents protocol reserves. The dynamic rebate ratio adapts to market conditions according to

ρ=0.4+0.1(1V/Vmax)\rho=0.4+0.1*(1-V/V_{max}) (14)

where VmaxV_{max} 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 (0.1F0.1F) for volume-based distribution. For a participant ii, their corresponding share SiS_{i} of these rewards is Si=(Vi/Vtotal)0.1FS_{i}=(V_{i}/V_{total})*0.1F, where the distribution occurs over fixed epochs to ensure consistent incentive alignment.

Table 1: Fee Parameters Across Market Regimes
Market Regime Volatility Condition Base Fee Rate (γ\gamma) Maximum Rebate Ratio (ρmax\rho_{max})
High Volatility σ>σh\sigma>\sigma_{h} 0.010 (1.0%) 0.40 (40%)
Moderate Volatility σlσσh\sigma_{l}\leq\sigma\leq\sigma_{h} 0.005 (0.5%) 0.35 (35%)
Low Volatility σ<σl\sigma<\sigma_{l} 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.

Refer to caption
Figure 1: BMM + DRS Interaction Workflow

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 X4Y=KX^{4}Y=K 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 (σ\sigma) and trading volume (VV) 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 n[1,5]n\in[1,5], 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

Yprop=Y0M1/(n+1)Y_{\text{prop}}=Y_{0}\cdot M^{-1/(n+1)} (15)
Retention Ratio(M,n)=YpropYtrad=M11n+1\text{Retention Ratio}(M,n)=\frac{Y_{\text{prop}}}{Y_{\text{trad}}}=M^{1-\frac{1}{n+1}} (16)

where M=PtP0M=\frac{P_{t}}{P_{0}} represents the price change multiplier.

Figure 2(a) plots the liquidity retention ratio, Retention Ratio(M,n)\text{Retention Ratio}(M,n), as a function of the price multiplier MM for various nn values. The results show that as nn increases, the proposed model retains more stablecoins compared to the traditional model. Although n=5n=5 offers marginally higher retention than n=4n=4, the improvement beyond n=4n=4 is minimal, suggesting diminishing returns.

Table 2: USDT Liquidity Retention Comparison
Price Multiplier Traditional AMM (Y) Proposed Model (Y) Retention Multiple
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 n=4n=4. 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 Y0=10,000Y_{0}=10,000 USDT and are computed using YM1/(n+1)Y\propto M^{-1/(n+1)} from Eq.15.

Similarly, the traditional impermanent loss is given by

ILtrad(M)=12MM+1\text{IL}_{\text{trad}}(M)=1-\frac{2\sqrt{M}}{M+1} (17)

while for the proposed model we assume that IL is reduced by a factor

g(n)=(n+1)24ng(n)=\frac{(n+1)^{2}}{4n} (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 (n=1,2,3,4,5n=1,2,3,4,5). The traditional AMM (n=1n=1) exhibits the highest IL profile, reaching nearly 90% at M=1000M=1000. Each increment in nn yields a systematic reduction in IL across all price ranges, with our proposed model (n=4n=4) achieving approximately 60% IL at M=1000M=1000, representing a 36% improvement over the traditional model. While n=5n=5 shows further IL reduction, the marginal benefit diminishes, supporting our choice of n=4n=4 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 10M10010\leq M\leq 100 where most volatile trading activity occurs.

Refer to caption
(a) Liquidity retention at different invariant power nn
Refer to caption
(b) Impermanent Loss vs. Price Multiplier for different values of nn
Figure 2: Analysis of BMM performance metrics. The power-law invariant with higher nn values shows improved liquidity retention (a) and reduced impermanent loss (b). As shown in (b), when nn increases from 1 to 5, we observe a systematic reduction in impermanent loss across all price multiplier values. At M=1000M=1000, the traditional AMM (n=1n=1) exhibits approximately 90% impermanent loss, while our optimized model (n=4n=4) significantly reduces this loss to about 60%. The marginal improvement at n=5n=5 validates our choice of n=4n=4 as the optimal parameter balancing loss reduction with other considerations such as slippage.

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%).

Refer to caption
Figure 3: Comparison of Daily Trading Volumes – Static vs. Dynamic Rebate Models

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 PbeforeP_{\mathrm{before}} is the price before the trade and PafterP_{\mathrm{after}} is the price after the trade, then for a trade size ΔX\Delta X, the slippage SS is

S=PafterPbeforePbeforeS=\frac{P_{\mathrm{after}}-P_{\mathrm{before}}}{P_{\mathrm{before}}} (19)

From Eq.2, the marginal price of XX in terms of YY is given by P=dYdX=nYXP=-\frac{dY}{dX}=\frac{nY}{X} as the initial price. Notice that ΔXX\Delta X\ll X, a first-order expansion on P leads to

PafterPbefore(n+1)nKXn+2ΔXP_{\mathrm{after}}\approx P_{\mathrm{before}}-(n+1)\,\tfrac{nK}{X^{n+2}}\,\Delta X (20)

Plugging it into Eq.8, we can derive

S(n+1)ΔXXS\approx-(n+1)\,\frac{\Delta X}{X} (21)

Define the Slippage Ratio 𝜷\boldsymbol{\beta}, we can compute

β=SproposedStraditional=n+12\beta=\frac{S_{\mathrm{proposed}}}{S_{\mathrm{traditional}}}=\frac{n+1}{2} (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 nn increases. For instance, at n=4n=4, 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 n=4n=4 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 n=4n=4 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 nn 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 n>4n>4 may further mitigate impermanent loss, they could compromise trading efficiency. Our findings indicate that n=4n=4 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

Appendix A Impermanent Loss Improvement Derivation

To compute the impermanent loss improvement factor g(n)g(n) for the power-law AMM XnY=KX^{n}Y=K, we start with the given expressions for the pool value VpoolV_{\text{pool}} and the hold value VholdV_{\text{hold}} after a price change:

Vpool=(n+1)Y0(1+ε)11n+1V_{\text{pool}}=(n+1)Y_{0}\cdot(1+\varepsilon)^{1-\frac{1}{n+1}} (A1)

and

Vhold=(n+1)Y0(1+ε)V_{\text{hold}}=(n+1)Y_{0}\cdot(1+\varepsilon) (A2)

The impermanent loss for the power-law model is given by:

ILprop(M,n)=1VpoolVhold=1(1+ε)11n+11+ε=1(1+ε)1n+1\text{IL}_{\text{prop}}(M,n)=1-\frac{V_{\text{pool}}}{V_{\text{hold}}}=1-\frac{(1+\varepsilon)^{1-\frac{1}{n+1}}}{1+\varepsilon}=1-(1+\varepsilon)^{-\frac{1}{n+1}} (A3)

Expanding (1+ε)1n+1(1+\varepsilon)^{-\frac{1}{n+1}} using a Taylor series for small ε\varepsilon, we get:

(1+ε)1n+111n+1ε+(n+2)2(n+1)2ε2(1+\varepsilon)^{-\frac{1}{n+1}}\approx 1-\frac{1}{n+1}\varepsilon+\frac{(n+2)}{2(n+1)^{2}}\varepsilon^{2} (A4)

Thus, the impermanent loss becomes:

ILprop(M,n)1n+1ε(n+2)2(n+1)2ε2\text{IL}_{\text{prop}}(M,n)\approx\frac{1}{n+1}\varepsilon-\frac{(n+2)}{2(n+1)^{2}}\varepsilon^{2} (A5)

We’ve already known that at n=1n=1, the traditional AMM yields IL as ILtradε28\text{IL}_{\text{trad}}\approx\frac{\varepsilon^{2}}{8}.

To find the improvement factor g(n)g(n), we compare the quadratic terms of the two impermanent loss expressions

(n+2)2(n+1)2=18g(n)\frac{(n+2)}{2(n+1)^{2}}=\frac{1}{8g(n)} (A6)

Solving for g(n)g(n), we get

g(n)=(n+1)24ng(n)=\frac{(n+1)^{2}}{4n} (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.

1import numpy as np
2
3# ---------------------
4# Dynamic Rebate System Simulation (Figure 3)
5# ---------------------
6T = 100 # Number of days to simulate
7V0 = 1e6 # Initial daily trading volume (USD)
8V_max = 1e6 # Target volume threshold
9
10# Static model: fixed rebate ratio.
11static_rebate = 0.35
12
13# Dynamic rebate function: rho = 0.4 + 0.1*(1 - V/V_max), capped between 0.3 and 0.4.
14def dynamic_rebate(V):
15 rho = 0.4 + 0.1 * (1 - V / V_max)
16 return np.clip(rho, 0.3, 0.4)
17
18# Sensitivity factor: determines how strongly volume reacts to rebate deviations.
19k = 0.05
20
21# Noise: daily percentage change (standard deviation of 1%).
22noise_std = 0.01
23
24# Initialize volume arrays for static and dynamic models.
25vol_static = np.zeros(T)
26vol_dynamic = np.zeros(T)
27vol_static[0] = V0
28vol_dynamic[0] = V0
29
30for t in range(1, T):
31 noise_static = np.random.normal(0, noise_std)
32 noise_dynamic = np.random.normal(0, noise_std)
33
34 # Static model: volume changes due only to noise.
35 vol_static[t] = vol_static[t-1] * (1 + noise_static)
36
37 # Dynamic model: volume changes include a feedback term based on the dynamic rebate.
38 current_rebate = dynamic_rebate(vol_dynamic[t-1])
39 feedback = k * (current_rebate - static_rebate)
40 vol_dynamic[t] = vol_dynamic[t-1] * (1 + feedback + noise_dynamic)
41
42# ---------------------
43# Liquidity Retention Simulation
44# ---------------------
45def retention_ratio(M, n):
46 return M ** (1 - 1/(n+1))
47
48M_values = np.logspace(0, 2, 200) # M from 1 to 100
49n_test = [1, 4]
50
51# ---------------------
52# Impermanent Loss Simulation Example
53# ---------------------
54def IL_trad(M):
55 return 1 - (2 * np.sqrt(M)) / (M + 1)
56
57def g(n):
58 return (n + 1)**2 / (4 * n)
59
60def IL_prop(M, n):
61 return IL_trad(M) / g(n)

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 VmaxV_{\text{max}}. The Liquidity Retention simulation computes the retention ratio as (M,n)=M11n+1(M,n)=M^{1-\frac{1}{n+1}}, which is plotted over a range of price multipliers MM. 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 g(n)g(n) from Eq. (A7).