Start typing to search this publication.
Gnosis Bridge
Open menu

Subscribe to Gnosis Bridge

Get new posts delivered straight to your inbox.

KyberSwap Total Swap Cost Breakdown: Reading a Three-Hop Quote

Gnosis Bridge
2 min read

For one KyberSwap swap, total cost in a common value unit is gas used × gas price (+ approval gas when needed) + per-hop pool fees + price impact + realized slippage + any separately shown interface fee. To estimate the all-in cost, use KyberSwap for a KyberSwap Aggregator quote, then convert the separate gas charge into that same value unit. Pools take fees from the traded amount, the trade moves pool prices, and gas pays the chain.

How Does a Three-Hop Swap Add Up?

Take a hypothetical swap of token A for token D through three pools: A to B, B to C, then C to D. Suppose each pool charges 0.3%. Each fee applies to the amount entering that hop, so the combined fee drag is 1 − (0.997 × 0.997 × 0.997), or about 0.9% of the starting value before price impact. It is already inside the quoted output; adding 0.9% to that quote would count it twice.

Think of the route as three toll booths: each pool collects a fee as the trade passes through. The analogy stops there because a pool also changes its exchange rate as the trade uses its liquidity. That price impact reduces the quoted output too. The Uniswap v3 Core whitepaper set out initial pool fee tiers of 0.05%, 0.3%, and 1%; those figures describe v3-style pools, not every pool an aggregator might use.

Now suppose the route quotes Q units of token D. With a hypothetical 1% slippage tolerance, minimum received is 0.99Q. That minimum is a floor for execution, not another 1% charge. If the trade settles below Q, the difference is realized slippage; if it settles at Q, realized slippage is zero. Compare the final output with Q to measure it.

The swap also needs gas, paid separately in the chain’s native coin. Under EIP-1559, the charge is gas units used × (base fee + priority fee). A token that needs approval first adds a separate approval transaction and its own gas charge. To compare routes fairly, convert both gas charges into the same value unit as the quoted output.

Confirmation time depends on the chain’s block timing and whether the offered gas price gets the transaction included. Initial confirmations on Arbitrum or Base are generally faster than on Ethereum mainnet. An approval adds another transaction to complete before the swap.

Does KyberSwap charge its own fee?

For a KyberSwap Aggregator quote, count an interface fee only if one is separately shown for the transaction. Keep that charge distinct from pool fees already reflected in the rate.

Why was the gas higher than the estimate?

Gas can exceed an estimate when execution uses more gas units or the effective gas price changes before inclusion. A required approval also has its own gas cost, separate from the swap estimate.

  • Pool fees and price impact are inside the quote; realized slippage is the difference at execution.

  • Add swap gas, any approval gas, and any separately shown interface fee to assess the all-in cost.

Subscribe to Gnosis Bridge