AMM Curve (C)
Last updated
Last updated
According to the design of concentrated liquidity in Uniswap V3, we can define an AMM curve () which acts like a constant product pool with larger reserves within specific price range ( current price ). The real reserves of two tokens in the pool can be imbalance when the tokens are traded within the defined range.
Due to the nature design of providing liquidity, the real reserves of FT and XT provided in the pool are imbalance. Therefore, we apply the same AMM curve as Uniswap V3 in TermMax.
In TermMax, we put our Fixed-Rate Token (FT) and X Token (XT) as token0 and token1 in the AMM pool. FT and XT are minted by the Underlying Token (UT, e.g. USDC) and Initial LTV (ILTV, e.g. 0.9) defined in the pool (). Liquidity providers can provide 1 USDC
and mint 0.9 FT
(worth 0.9 USDC
at maturity) and 1 XT
(worth 0.1 USDC
at maturity) and the market price will remain the same.
In addition, to adjust the slippage according to liquidity in the pool and market demand, we define a Liquidity Scaling Factor () to increase the virtual liquidity as and derive virtual liquidity and from .
In TermMax, we set (the upper bound of the XT to FT price) and derive from
With variable substitution, we can derive from
We will use to derive the formula for each pool operation.