Type Alias SwapQuoteParam
SwapQuoteParam: { amountSpecifiedIsInput: boolean; aToB: boolean; fallbackTickArray?: PublicKey; otherAmountThreshold: BN; sqrtPriceLimit: BN; tickArrays: TickArray[]; tokenAmount: BN; tokenExtensionCtx: TokenExtensionContextForPool; whirlpoolData: WhirlpoolData; }
Param: tokenAmount
The amount of input or output token to swap from (depending on amountSpecifiedIsInput).
Param: otherAmountThreshold
The maximum/minimum of input/output token to swap into (depending on amountSpecifiedIsInput).
Param: sqrtPriceLimit
The maximum/minimum price the swap will swap to.
Param: aToB
The direction of the swap. True if swapping from A to B. False if swapping from B to A.
Param: amountSpecifiedIsInput
Specifies the token the parameter
amount
represents. If true, the amount represents the input token of the swap.Param: tickArrays
An sequential array of tick-array objects in the direction of the trade to swap on
Param: tokenExtensionCtx
TokenExtensions info for the whirlpool
Param: fallbackTickArray
Optional. A reserve in case prices move in the opposite direction