Skip to main content

SwapMath

@pegasys-fi/v3-sdk / Exports / SwapMath

Class: SwapMath

Table of contents

Constructors

Methods

Constructors

constructor

Private new SwapMath()

Cannot be constructed.

Defined in

utils/swapMath.ts:13

Methods

computeSwapStep

Static computeSwapStep(sqrtRatioCurrentX96, sqrtRatioTargetX96, liquidity, amountRemaining, feePips): [default, default, default, default]

Parameters

NameType
sqrtRatioCurrentX96default
sqrtRatioTargetX96default
liquiditydefault
amountRemainingdefault
feePipsFeeAmount

Returns

[default, default, default, default]

Defined in

utils/swapMath.ts:15