Uniswap V4 hook that interpolates between different types of AMM models based on parameters.

Custom curve hook that interpolates between a constant sum (curve), constant product (univ2), concentrated range (univ3), convex concentrated liquidity, and exponential-tailed liquidity with just one parameter ’n’.When n is between -1 and 0 it bulges the uni v3 concentrated liquidity position (concave).
When n is between 0 and 1 it dents a uni v3 concentrated liquidity position (convex). If we enter a volatile mode for the asset, we can jump either from A -> B or C -> C to B offering better price impact in both directions.
Alternatively, this curve is also great for a more capital efficient version of Univ2 as one increases n beyond 1.
Consider two volatile assets - ETH and DOGE and observe how they diffuse across time.
Some assets can have thinner tails than others so we can use parameter n to specify the thickness.
-Solidity, Uniswap V4, prb-math and Desmos

