Skip to main content

Fees

The pool fee tier is expressed in hundredths of a basis point in the SDK. The current contract supports four tiers:

Fee tierTrading feeTick spacingProtocol fee
00%2000.1 of the trading fee
5000.05%100.1 of the trading fee
30000.30%600.1 of the trading fee
100001.00%2000.1 of the trading fee

Tier 0 is the no-trading-fee tier. It still has a tick spacing of 200 and is not interchangeable with a missing fee value. Omitting fee from a quote asks the backend to compare all available tiers, including 0.

const quote = await gSwap.quoting.quoteExactInput('GALA', 'GUSDC', '100');
console.log(`Best tier: ${quote.feeTier}`);

const zeroFeeQuote = await gSwap.quoting.quoteExactInput('GALA', 'GUSDC', '100', 0);

Trading fees are included in quote amounts. The protocol fee is currently fixed at 10% of the trading fee. The v2 contract does not add a separate gSwap gas charge; network fee policy is outside the quote.

Tick ranges must use the spacing shown above. For example, a 3000 pool must use lower and upper ticks divisible by 60. See Liquidity Concentration.