Function tryGetNextSqrtPriceFromB
tryGetNextSqrtPriceFromB( current_sqrt_price: bigint, current_liquidity: bigint, amount: bigint, specified_input: boolean,): bigint Parameters
- current_sqrt_price: bigint
- current_liquidity: bigint
- amount: bigint
- specified_input: boolean
Returns bigint
Calculate the next square root price
Parameters
current_sqrt_price
: The current square root pricecurrent_liquidity
: The current liquidityamount
: The amountspecified_input
: Whether the input is specifiedReturns
u128
: The next square root price