KyberSwap quotes a swap route off-chain, encodes it as router calldata, and executes its hops in one on-chain transaction that either completes or reverts. The quote proposes an outcome; the signed transaction supplies the conditions the router enforces at settlement.
How Does the KyberSwap Aggregator Move a Trade From Quote to Settlement?
The KyberSwap Aggregator starts with the input token, output token, amount and chain. It scans available liquidity sources and calculates a route for that request. A route may pass through an intermediate token or split the input across pools before combining the output. Its quoted amount is an estimate based on liquidity when the route was calculated.
Say you want to swap one token for another on Ethereum. One pool may offer a good rate for part of the order but a worse rate for the rest. Splitting the trade can improve the estimated output, although extra hops also use gas. Comparing routes therefore means looking at the expected tokens received alongside the cost of executing each path.
The KyberSwap Aggregator finds a path through liquidity; it does not settle the quote when it displays an estimate. For background on that routing role, KyberSwap helps explain why a proposed trade can involve several pools while still settling as one transaction.
Next, the route is built into calldata: the encoded instructions sent to the router contract. Those instructions include the route, a minimum output derived from the chosen slippage tolerance, and a deadline. The minimum output is the amount the trade must deliver at execution. The deadline limits how long the transaction can remain eligible to execute.
If the input is an ERC-20 token, the router also needs sufficient allowance to spend it. An approval authorizes a spender to pull tokens up to that allowance; it is separate from the swap itself. A successful approval therefore leaves you ready to submit the trade, but it does not mean any token has been exchanged. Before signing, confirm that the spender, input amount, recipient and minimum output match the trade you intend.
Once the signed swap transaction reaches a block, the router pulls the input, executes the encoded hops and checks the final output. If every step succeeds and the output meets the minimum, the recipient receives the tokens. If a hop fails, the deadline has passed or output falls below the minimum, the entire swap reverts. Earlier hops cannot remain partially settled, though a reverted transaction can still consume gas.
What Binds Your Trade When the Price Changes?
The signed router transaction binds the trade’s execution conditions, especially its minimum output and deadline. The quoted amount binds nothing: it is a snapshot, not a promise of what will arrive. Slippage tolerance matters because it sets the floor checked on-chain, rather than requiring the router to deliver the exact quoted amount.
Take an illustrative trade quoted to return 100 output tokens. If its encoded minimum is 99, a fill of 99.5 can succeed even though it is below the quote; a fill of 98.5 reverts. The numbers illustrate the rule, not a particular KyberSwap setting. Inspecting only the quote would miss the difference between those two outcomes.
Pool prices can move between the quote and the transaction’s inclusion. MEV, or value extracted by ordering transactions, can also change the price the route encounters. Either can push output toward the minimum or beyond it into a revert. A tighter minimum limits an unfavorable fill but makes a revert more likely; a looser one gives execution more room at a potentially worse price.
When diagnosing a trade, locate the stage it reached. No usable route points to the quote or route build. An approval without a swap means settlement has not begun. A reverted swap calls for the transaction’s failure reason and its encoded minimum and deadline; a successful swap calls for comparing actual output with those conditions.
That is the governing sequence: routing proposes a trade off-chain, while the router enforces its signed conditions on-chain. Read the minimum output and deadline to understand what your trade can actually settle for.