SqrtPriceMath
#
Methods#
getAmount0Delta▸ Static
getAmount0Delta(sqrtRatioAX96
: default, sqrtRatioBX96
: default, liquidity
: default, roundUp
: boolean): default
#
ParametersName | Type |
---|---|
sqrtRatioAX96 | default |
sqrtRatioBX96 | default |
liquidity | default |
roundUp | boolean |
Returns: default
Defined in: utils/sqrtPriceMath.ts:25
#
getAmount1Delta▸ Static
getAmount1Delta(sqrtRatioAX96
: default, sqrtRatioBX96
: default, liquidity
: default, roundUp
: boolean): default
#
ParametersName | Type |
---|---|
sqrtRatioAX96 | default |
sqrtRatioBX96 | default |
liquidity | default |
roundUp | boolean |
Returns: default
Defined in: utils/sqrtPriceMath.ts:38
#
getNextSqrtPriceFromInput▸ Static
getNextSqrtPriceFromInput(sqrtPX96
: default, liquidity
: default, amountIn
: default, zeroForOne
: boolean): default
#
ParametersName | Type |
---|---|
sqrtPX96 | default |
liquidity | default |
amountIn | default |
zeroForOne | boolean |
Returns: default
Defined in: utils/sqrtPriceMath.ts:48
#
getNextSqrtPriceFromOutput▸ Static
getNextSqrtPriceFromOutput(sqrtPX96
: default, liquidity
: default, amountOut
: default, zeroForOne
: boolean): default
#
ParametersName | Type |
---|---|
sqrtPX96 | default |
liquidity | default |
amountOut | default |
zeroForOne | boolean |
Returns: default
Defined in: utils/sqrtPriceMath.ts:57