Type alias DevFeeSwapQuote

DevFeeSwapQuote: NormalSwapQuote & {
    amountSpecifiedIsInput: true;
    devFeeAmount: BN;
    estimatedSwapFeeAmount: BN;
}

A collection of estimated values from quoting a swap that collects a developer-fee.

Type declaration

  • amountSpecifiedIsInput: true
  • devFeeAmount: BN
  • estimatedSwapFeeAmount: BN

Param: estimatedAmountIn

Approximate number of input token swapped in the swap

Param: estimatedAmountOut

Approximate number of output token swapped in the swap

Param: estimatedEndTickIndex

Approximate tick-index the Whirlpool will land on after this swap

Param: estimatedEndSqrtPrice

Approximate sqrtPrice the Whirlpool will land on after this swap

Param: estimatedFeeAmount

Approximate feeAmount (all fees) charged on this swap

Param: estimatedSwapFeeAmount

Approximate feeAmount (LP + protocol fees) charged on this swap

Param: devFeeAmount

FeeAmount (developer fees) charged on this swap

Generated using TypeDoc