Chaos Labs | Price Impact Mechanism Proposal

Summary

We are proposing the implementation of a price impact mechanism on Jupiter to enhance market stability and protect liquidity providers. This mechanism introduces dynamic fees that adjust based on the imbalance of open positions within short time intervals (e.g., one minute). The primary goals of this proposal are to:

  • Promote Fair Trading Practices: Discourage the rapid accumulation of large, one-sided positions that can disrupt market equilibrium.
  • Enhance Market Stability: Mitigate risks associated with sharp price movements by compensating for the added exposure faced by liquidity providers during periods of significant market imbalance.
  • Minimize Impact on Regular Trading: Ensure that typical trading activities remain largely unaffected, with additional fees applied primarily during periods of extreme market imbalance.

By calibrating specific parameters for each asset—such as the base fee rate, delta imbalance thresholds, and maximum fees—we aim to implement a system that is both effective in risk mitigation and fair to all traders. This approach seeks to strengthen the resilience of Jupiter’s markets without imposing undue burdens on legitimate trading activities.

Price Impact as a Function of Delta Imbalance in a Time Window

We propose introducing a price impact fee based on the delta imbalance created in each market within a specific time window, such as a 1-minute interval. This approach addresses several key issues:

  1. Informed Trading: Traders with strong signals on price movements (e.g., the trader in the SOL market) will not benefit from splitting positions across different trades or addresses, as positions must be opened quickly before their alpha decays.
  2. Sharp Price Movements: During sharp price movements, traders taking numerous one-sided positions will incur higher costs for opening their positions. This compensates for the undesirable delta imposed on the JLP.
  3. High Volume Periods: During periods of high trading volume in both directions, the imbalance difference will be minimal due to offsetting buy and sell trades. Thus, a high price impact fee will not be imposed, and overall volume and utilization should remain unaffected.

Suggested Mechanism:

For each market, we calculate the open interest imbalance (the sum of long open interest minus the sum of short open interest) after the current trade and subtract the open interest imbalance from one minute earlier (approximated by block numbers). This gives us the delta imbalance.

We then define the price impact fee as a function of the delta imbalance:

\text{price impact fee}=\text{base fee}+\text{factor}\times{\text{abs(delta imbalance)}^{exp}}

Where factor and exp are parameters that must be calibrated.

This method presents a trade-off between mitigating potential manipulation, which could lead to losses for liquidity providers (LPs), and imposing unnecessarily high fees on legitimate traders. We will optimize the method’s parameters to strike a balance between these two concerns.

Price impact will apply to both open and close trades but will not trigger or apply to liquidations. Forcing liquidations due to large price impact fees (e.g., a 1% maximum price impact) is undesirable and leads to poor user experience.

Additionally, traders could exploit the system by opening interleaved positions below the delta imbalance threshold, using a hedge on the opposite side, and gradually reaching their desired position. They could then close the unnecessary side just before executing a manipulation, effectively bypassing the price impact. To address this, we must also apply price impact on position closures to prevent such tactics.

For a factor of 5e-10 and an exp of 2, the fee will be 10 bps for a 2M$ delta imbalance and 20 bps for a $4M delta imbalance. If the max price impact is set to 0.5%, i.e., trades as of $10M and above delta imbalance, will pay a price impact of 0.5% and not more.

Impact on Innocent Traders

To examine instances where high fees are incurred in percentage terms and test their correlation with price changes, we analyzed the median fee percentage over 1-minute windows for the SOL market. We observed a low correlation between the median fee percentage and price change, with a correlation of 1.6% for the 1-minute period. Below, we present the median fee percentage versus price over a 1-minute window, highlighting the impact of the suggested price impact fee method.

Parameter Specification

The suggested method requires specifying five parameters for each asset:

  1. Base Rate: A fixed fee expressed as a percentage of the trade size.
  2. Exp: The exponent to which the absolute value of delta imbalance is raised.
  3. Factor: A multiplier applied to abs(delta imbalance)exp.
  4. Delta Imbalance Threshold: A threshold for the absolute value of delta imbalance. When exceeded, additional price impact fees are applied. This prevents high fees during periods of low delta imbalance, which is not the method’s target.
  5. Max Fee: The maximum total fee, expressed as a percentage of the trade size, to prevent excessively high fees.

The following simulations used live trade data from Jupiter from 10 August to 9 September 2024.

SOL

Benchmark:

  • All Users: Paid $8,520,454 in open/close fees and price impact.

Below, we present the total fees paid for each configuration combination. The heat maps use an exponent (exp) of 2 and fine-tune the factor, delta imbalance threshold, and max fee parameters.

We recommend a maximum fee of 0.5%, a delta imbalance threshold of $1.5M, and a factor of 5e-10. This configuration results in $6.7 million in total fees for all traders, a 22% decrease compared to the benchmark. Below, we provide the fee distribution and explain why this decrease in fees is justified.

The $1.5M delta imbalance threshold was chosen because it actively charges price impact when needed, and should help reduce the risk of large positions being opened simultaneously. At the same time, it imposes fewer fees on regular users, reducing the likelihood of negative community feedback. This threshold was preferred over a $1M threshold with the same factor, which would generate more fees but could be seen as more punitive.

Alternatively, a delta imbalance threshold of $2M would lead to $6.3 million in price impact fees, a 26% decrease, and would only apply price impact in 0.7% of trades, compared to 1% for the $1.5M threshold. Therefore, a $2M threshold could also be considered.

As can be seen, the impact on traders is minimal—99% of trades only incur the base rate.

BTC

Benchmark - All Users Paid $1,649,758 in open/close fees and price impact.

We recommend a delta imbalance threshold of $5,000,000, with a factor of 5e-11 and a max fee of 0.5%. This approach ensures we do not impose unnecessary limitations on the BTC market, either now or unintentionally, if the market grows. These values will currently keep the feature inactive, only triggering it if a strong one-sided volume occurs in a short period on Jupiter. As a result, they will reduce price impact for the BTC market by ~11%, from $1,649,758 to $1,472,101.

ETH

Benchmark - All Users Paid $656,604 in open/close fees and price impact.

We recommend a delta imbalance threshold of $5,000,000, with a factor of 5e-11 and a max fee of 0.5%. As with BTC, this approach ensures we do not impose unnecessary limitations on the ETH market as it grows. These values will keep the feature inactive, only triggering it if a strong one-sided volume occurs in a short period on Jupiter. As a result, they will reduce price impact for the current ETH market by ~16%, from $656,604 to $554,954.

Recommendations

Asset base rate factor exp delta_imbalance_thr max_fee
SOL 6 bps 5e-10 2 1,500,000 0.5%
BTC 6 bps 5e-11 2 5,000,000 0.5%
ETH 6 bps 5e-11 2 5,000,000 0.5%
7 Likes

very interesting data! :smile:

1 Like

Summary

Following the methodology described in Chaos Labs | Price Impact Mechanism Proposal, we provide an updated set of parameters.

To ensure a smooth introduction and minimize disruptions to the protocol’s trading experience, we are opting for more conservative parameters. Our goal is to keep price impact within its active range rarely at first, prioritizing user experience. While this approach may reduce income from price impact fees initially, we believe it is the preferred strategy at launch.

Once we assess its impact on the protocol, we can refine the parameters and adopt a less conservative stance if needed, and increase the limitation on trade size.

Note that price impact applies only to opening and closing trades, excluding liquidations.

Price Impact Mechanism

The suggested mechanism requires specifying six main parameters for each asset:

  1. Base Rate: A fixed fee expressed as a percentage of the trade size.
  2. Exp: The exponent to which the absolute value of delta imbalance is raised.
  3. Factor: A multiplier applied to abs(delta imbalance)exp.
  4. Imbalance Time Window: The time window used to calculate the delta imbalance in open interest.
  5. Delta Imbalance Threshold: A threshold for the absolute value of delta imbalance. When exceeded, additional price impact fees are applied. This prevents high fees during periods of low delta imbalance, which is not the method’s target.
  6. Max Fee: The maximum total fee, expressed as a percentage of the trade size, to prevent excessively high fees

We then define the price impact fee as a function of the delta imbalance:

price \space impact \space fee = base \space fee * trade\space size + factor \space * \space \lvert delta \space imbalance\rvert ^ {exp}

where factor and exp are calibrated for each market separately and delta imbalance is calculated as the difference between the open interest imbalance after the trade and from one minute prior.

Simulation Results

The following simulations used live trade data from Jupiter between 2024 December 29th to 2025 February 27th. The simulation results shown here inherently assume that there are no changes to the trader behavior under the suggested price impact mechanism. However, an increase in trade volume is highly possible given the resulting fee reductions with the new mechanism.

SOL

Benchmark:

  • All Users: Paid $41.5 in open/close fees and price impact - $27M in open/close, $14.5M in price impact.

Below, we present the total fees paid for each configuration combination. The heat maps use an exponent (exp) of 2 and fine-tune the factor, delta imbalance threshold, and max fee parameters.

Higher granularity of factor in the relevant area:

Currently, 3% of trades incur more than 1 bps in price impact (7 bps including the base rate), while 0.5% of trades pay more than 4 bps (10 bps total).

We propose starting with a delta imbalance threshold of $3,000,000 and a factor of 2e-10, which would have resulted in $1.7M in price impact fees ($28.7M including open/close fees and price impact), compared to the $14.5M benchmark. With this configuration, only 0.8% of trades are expected to experience price impact, creating a permissive environment to ensure the feature functions smoothly without unexpected spikes in price impact.

BTC

Benchmark - Paid $9M in open/close fees and price impact - $7.3M in open/close, $1.7M in price impact - 18% in price impact.

We recommend setting the delta imbalance threshold at $5,000,000, with a factor of 5e-11 and a maximum fee of 0.3%. This configuration ensures minimal restrictions on the BTC market while maintaining flexibility.

With these parameters, the feature will remain inactive for 99.8% of trades, only activating in the event of a significant one-sided volume surge on Jupiter within a short period. As a result, we anticipate a 10% reduction in price impact and open/close fees.

ETH

Benchmark - Paid $6.6M in open/close fees and price impact - $4.7M in open/close, $1.9M in price impact - 28% in price impact.

We recommend a delta imbalance threshold of $5,000,000, with a factor of 5e-11 and a maximum fee of 0.3%. Similar to BTC, this approach ensures that the ETH market remains unrestricted while maintaining protection against extreme imbalances.

With these parameters, the feature will remain inactive 99.9% of the time, only triggering in response to a significant one-sided volume surge on Jupiter within a short period. As a result, we expect a temporary ~28% reduction in price impact fees.

Recommendations

Asset Base Rate Factor Exp Delta Imbalance Threshold Max Fee Time window [minutes]
SOL 6 bps 2e-10 2 3,000,000 0.3% 1
BTC 6 bps 5e-11 2 5,000,000 0.3% 1
ETH 6 bps 5e-11 2 5,000,000 0.3% 1

Effect of New Price Impact Mechanism

The calculations below assume there are no other trades within in the imbalance time window.

Given $0 initial imbalance in the window:

Trade Size ($) BTC Current Price Impact [bps] BTC Proposed Price Impact [bps] ETH Current Price Impact [bps] ETH Proposed Price Impact [bps] SOL Current Price Impact [bps] SOL Proposed Price Impact [bps]
100,000 6.1 6 6.2 6 6.8 6
1,000,000 7.25 6 8 6 14 6
2,000,000 8.5 6 10 6 22 6
2,500,000 9.1 6 11 6 26 6
5,000,000 (Not allowed) 8.5 (Not allowed) 8.5 (Not allowed) 16
10,000,000 (Not allowed) 11 (Not allowed) 11 (Not allowed) 26

Given a theoretical $2M initial imbalance in the window:

Trade Size ($) BTC Current Price Impact [bps] BTC Proposed Price Impact [bps] ETH Current Price Impact [bps] ETH Proposed Price Impact [bps] SOL Current Price Impact [bps] SOL Proposed Price Impact [bps]
100,000 6.1 6 6.2 6 6.8 6
1,000,000 7.25 6 8 6 14 24
2,000,000 8.5 6 10 6 22 22
2,500,000 9.1 6 11 6 26 22.2
5,000,000 (Not allowed) 10.9 (Not allowed) 10.9 (Not allowed) 25.6
10,000,000 (Not allowed) 13.2 (Not allowed) 13.2 (Not allowed) 30

Once the new model operates stably, we could consider increasing the $2.5M single-trade limit, potentially doubling it to $5M initially, with the possibility of further increases. This adjustment would make the market more attractive to larger traders while maintaining stability.

2 Likes

After enabling the new mechanism last week and examining its performance, we are providing an updated recommendation to increase the effective price impact. This recommendation would allow us to eventually increase the maximum position size while mitigating the risks of sybil attacks and market manipulations.

Price Impact Parameters
Parameter BTC ETH SOL
Base Fee 0.0006 0.0006 0.0006
Factor 1e-10 1e-10 3e-10
Delta Imbalance Threshold 2,000,000 2,000,000 2,000,000
exp 2 2 2
max fee 0.005 0.005 0.005
Window Length 1 minute 1 minute 1 minute
1 Like