DEX Protocol
Dynamic Trading Fees
This page describes how dynamic trading fees are implemented for the USDC-USDT DEX Pool (#2), wstETH-ETH(#1) and USDC-ETH(#12)
Introduction
Dynamic trading fees were introduced to improve trading volume while keeping rewards sustainable for Smart Vault participants, after the execution of IGP#84.
Dynamic trading fees also apply to wstETH-ETH(#1) and USDC-ETH(#12) following the execution of IGP#89.
Background
The USDC-USDT DEX Pool (#2) ran into volume challenges that called for a strategic solution. After careful analysis, we identified two possible approaches:
- Flat Fee Reduction: Cut the fee to a fixed 0.003%
- Dynamic Fee Structure: Introduce a variable fee system that depends on price deviation
In the same way, dynamic fees now apply to wstETH-ETH(#1) and USDC-ETH(#12) to give smart collateral and smart debt vault users the best-optimized trading APR by fine-tuning the trading fees.
How Dynamic Fees Work
The dynamic fee system relies on a mathematical function built on the 3x² - 2x³ curve, giving a smooth, responsive fee adjustment driven by price deviation from peg.
Core Mechanics
- Fee Range: The fee moves automatically from a floor of 0.003% (minimum) up to 0.01% (maximum)
- Price Deviation: Fees scale with how far the USDC/USDT pool price drifts from 1.0
- Mathematical Model: Using the 3x² - 2x³ curve, fees rise in proportion to market volatility
Visual Representation
You can visualize the fee structure like this:
- Y-axis: Trading fees, which range from 0.003% to 0.01%
- X-axis: Price deviation from 1.0 (for example, a 0.4% deviation means the current price is 1.004)
Implementation Example
| Price Deviation | Applied Fee |
|---|---|
| 0.000% (at peg) | 0.003% |
| 0.100% | ~0.004% |
| 0.200% | ~0.006% |
| 0.300% | ~0.008% |
| 0.400%+ | 0.010% |
Benefits of Dynamic Fees
This implementation offers several advantages:
- Enhanced Market Efficiency: Lower fees in stable market conditions encourage trading and arbitrage, which leads to higher volumes
- Volatility Protection: Higher fees during price deviations limit how far the pool price can move and keep it within range
- Balanced Incentives: Strikes a balance between trading volume and trading APR
Future Considerations
Protocol governance keeps monitoring this implementation and may propose adjustments depending on:
- Market conditions
- Competitive landscape
- Input from traders and liquidity providers