Skip to main content

Function: isDexFeeMethod()

gSwap SDK 2.0.0-rc.4


gSwap SDK 2.0.0-rc.4 / isDexFeeMethod

Function: isDexFeeMethod()

isDexFeeMethod(method): method is "Swap" | "RequestTrade" | "AddLiquidity" | "RemoveLiquidity" | "CollectPositionFees" | "CreatePool"

Defined in: packages/gswap-sdk/dist/index.d.ts:1174

True when method is a DEX method a fee can be quoted for.

Parameters​

method​

unknown

Returns​

method is "Swap" | "RequestTrade" | "AddLiquidity" | "RemoveLiquidity" | "CollectPositionFees" | "CreatePool"