Periphery Libraries
LiquidityAmounts
Provides functions for computing liquidity amounts from token amounts and prices
Computes the amount of liquidity received for a given amount of token0 and price range
Calculates amount0 _ (sqrt(upper) _ sqrt(lower)) / (sqrt(upper) - sqrt(lower))
Computes the amount of liquidity received for a given amount of token1 and price range
Calculates amount1 / (sqrt(upper) - sqrt(lower)).
Computes the maximum amount of liquidity received for a given amount of token0, token1, the current
pool prices and the prices at the tick boundaries
Computes the amount of token0 for a given amount of liquidity and a price range
Computes the amount of token1 for a given amount of liquidity and a price range
Computes the token0 and token1 value for a given amount of liquidity, the current
pool prices and the prices at the tick boundaries
