Dynamic Fees
GAMMA Dynamic Fees Explained
The dynamic fee model and pool reblancing for our AMM was created by iterating on the numerous AMM designs throughout crypto over the years but adapted to the specific characteristics of a constant product system, which doesnโt use discrete price bins. Instead, we use factors like price deviation, recent volatility, and liquidity concentration to compute the dynamic fee.
Dynamic Fee depends on
How volatile the market is: If prices are fluctuating frequently, we increase the fee to protect the pool and generate more rewards for Liquidity Providers (LPs).
How balanced the pool is: GAMMA aims for a 50/50 split of token amounts in the pool. The further away from that balance we get, the more we adjust the fee.
Volume: If trading volume is high, fees can adapt to provide the optimum returns for LPs.
Dynamic Fee Formula
volatility_component
liquidity_imbalance_component
Liquidity imbalance is based on the deviation from the ideal token ratio (50/50). The further the pool moves away from this ratio, the higher the fee component becomes.
recent_price_volatility
current_ratio
The current ratio of token amounts in the pool, compared against the ideal 50/50 split.
ideal_ratio
For our AMM, the ideal ratio is set at
0.5
, reflecting equal distribution between the two tokens.
Last updated