SwapMath
@pegasys-fi/v3-sdk / Exports / SwapMath
Class: SwapMath
Table of contents
Constructors
Methods
Constructors
constructor
• Private
new SwapMath()
Cannot be constructed.
Defined in
Methods
computeSwapStep
▸ Static
computeSwapStep(sqrtRatioCurrentX96
, sqrtRatioTargetX96
, liquidity
, amountRemaining
, feePips
): [default
, default
, default
, default
]
Parameters
Name | Type |
---|---|
sqrtRatioCurrentX96 | default |
sqrtRatioTargetX96 | default |
liquidity | default |
amountRemaining | default |
feePips | FeeAmount |
Returns
[default
, default
, default
, default
]