ðĪĐv2: DMM
Concentrated Liquidity ++ with volatility adjusted fees.
Last updated
Concentrated Liquidity ++ with volatility adjusted fees.
Last updated
*in development*
Derp Market Maker (DMM) with volatility-adjusted fees. DerpDEX CLAMM with concentrated liquidity introduces a flexible and efficient way that can significantly improve capital efficiency and help LPs customize with range orders.
While CLAMM concentrated liquidity gives LPs granular control over what price ranges their capital is allocated to, it introduces potentially bigger impermanent loss should there be any large one-way price action.
This is where DMM, given its significant outperformance over CPAMM in protecting P&L for LPs, can be perfectly combined with CLAMM. In detail look, the HMM combination with CLAMM can be easily adopted only with changes made to the swapping process within each active tick interval.
Same as CPMM, the available liquidity for both tokens within each interval can be easily calculated withand. This can be compared to remaining input token balance (positive or negative) to see if we need to cross the next tick. Within each price interval [ (starting tick price), (ending tick price)], the output token amount (positive or negative) can be calculated with DMM.
if is NOT between and (oracle price): â
If input token is X,
If input token is Y,
LPs providing liquidity in an AMM pool experience a volatility drag on their position i.e. they have volatility exposure. When markets are moving a lot, LP profits are eroded away by higher impermanent loss.
Sophisticated LPs that dynamically rebalance their token inventories bleed more money doing these rebalancings in volatile markets. Conversely, AMMs accumulate profits in calm markets when there is trading activity around a stable price.
Constant fee fails to reflect these market dynamics. This means LPs will be more inclined to take away liquidity from AMMs in volatile markets thus exacerbating market moves. In stable times, traders will be less inclined to pay the high fees on DEXes. This is the exact opposite of the desired dynamic!
Volatility sensitive pricing is needed for incentivising LPs to keep funds during volatile times and traders to continue using DEXes in stable times. LPs should earn higher fees in turbulent times and lower fees in calmer markets. This would lead to a fairer and a more robust trading ecosystem.
We present the heuristic for pricing AMM fee below.
Assuming an LP provides liquidity in a 2-asset constant product market making pool composed of tokens X and Y.
ââSquare root price process is given by:ââ
The above can also be modelled by explicitly calculating the delta-hedging p&l of an LP that constantly hedges its delta to stay hedged in numeraire. This negative gamma pnl experienced by LPs between 2 periods is given by:
Considering a single day time frame, the expected value of LP loss equates to
We want the expected fee earned from AMM to exceed that of the LP loss.
So:
We define velocity as a measure of ADV / TVL. i.e. what multiple of the TVL does the AMM trade daily on average. This gives us the below heuristic for setting min AMM fee.
if is between â and (oracle price):â
Treating Y as numeraire, we have marginal price and
â and â denote the LP token balances and L is a constant denoting liquidity supplied by the LP. Value of LP assets in the pool ( â ) are given by
The value of LP assets follow a square root price process.Assuming geometric brownian motion for price ,we have:â
This means LPs experience a volatility drag =
Where is the initial value of the LP deposit and denotes the annualized volatility of log returns.
Here ADV represents the average daily volume, TVL is the total value locked in the pool and is the fee rate.