Skip to main content

Interface: DexFeeQuote

gSwap SDK 2.0.0-rc.4


gSwap SDK 2.0.0-rc.4 / DexFeeQuote

Interface: DexFeeQuote

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

The backend's response. It ALWAYS carries a usable fees[0].feeInGala: the backend decides what to serve when the chain cannot price the operation, so the client never invents a fee.

source is informational: 'dry-run' is simulated on chain and authoritative (possibly a legitimate '0'), 'default' means the chain could not price it and the platform default was served.

Properties​

fees​

fees: object[]

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

feeInGala​

feeInGala: string


source​

source: "dry-run" | "default"

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