Skip to the article
Tokenbearing

Crypto protocols, markets and policy

Minimum received in a token swap sets the output floor

What does minimum received mean in a token swap? It is the output floor after slippage tolerance; the router reverts below it, while gas is paid separately.

Tokenbearing Editorial4 min read#2c357b

Minimum received in a token swap sets the output floor

Minimum received in a token swap is the smallest amount of the output token the transaction will accept, with the router reverting if execution would deliver less. Prices can move between the quote and execution, so the transaction enforces this floor. On KyberSwap, route aggregation makes a cross-chain swap a useful illustration: the quote shows an estimated output and a minimum output based on the selected slippage tolerance.

The minimum is your accepted output floor

The minimum received is calculated from the quoted output and your slippage tolerance: quoted output × (1 − slippage tolerance). The result is denominated in the output token. It is the threshold the swap must meet when it executes, not a promise that the quote will be delivered exactly.

Say the quote is 1,000 USDC and the tolerance is 0.5%. The calculation is 1,000 × (1 − 0.005), so the minimum received is 995 USDC. Before signing, compare that floor with the quoted output and make sure the output token and units are the ones you expect.

The router encodes this threshold as amountOutMin. Uniswap V2 Router02, for instance, checks that the amount out meets the minimum and reverts if it does not. The floor therefore governs execution on-chain; it is not just a warning displayed beside the quote. KyberSwap’s documentation describes its minimum output as accounting for the maximum slippage setting.

Raising the slippage tolerance lowers the minimum. That gives the transaction more room to execute after the price moves, increasing the chance it fills. It also means you accept a worse output. A lower tolerance sets a higher floor, but a smaller price movement can make the swap revert.

If execution would return less than 995 USDC in the illustrative case, the router rejects the swap. The trade does not complete, but the attempted transaction still uses network resources, so gas is spent. On Ethereum, gas is paid separately in ETH; it is not deducted from the minimum received. That means the total cost of an unsuccessful attempt can exceed the gap between the quote and the floor.

The minimum is net of the chosen slippage adjustment: it tells you the least output the transaction will accept under that setting. It does not add gas to the output calculation or show your full wallet cost. Read the output floor in the output token, then account separately for the network fee in its native coin.

Price impact and minimum received describe different things. Price impact is the effect your trade has on the pool’s price as it uses available liquidity. Minimum received is your accepted worst-case output after applying slippage tolerance. A trade can have price impact in its quote before execution; the floor then sets how far the final output may move from that quote before the transaction reverts.

Before confirming, use the quote to calculate the floor, check the tolerance that produced it, and look separately at gas. The floor protects the output threshold because the router enforces it at execution; gas remains a separate transaction cost.

Related questions

What is a good slippage tolerance?

A good tolerance is the lowest setting that still gives the swap a reasonable chance to execute under the expected price movement. There is no single setting that fits every token pair or market condition. Increasing it lowers your minimum received, so check the new floor before confirming.

Is minimum received the same as price impact?

No. Price impact describes how your trade changes the pool price; minimum received is the output floor set by your quote and slippage tolerance. One describes the trade’s effect on pricing, while the other states the least output the transaction will accept.

Swap execution and fees

Why did my swap fail with slippage too low?

The output available when the transaction executed fell below its minimum received threshold. The router reverted the swap, and gas was still spent on the failed transaction.

Does KyberSwap charge a fee on top of minimum received?

Minimum received is an output threshold, not a fee. Gas is paid separately in the network’s native coin, such as ETH on Ethereum. Review the quote’s fee details as well as the minimum before signing; the floor alone does not state the total transaction cost.

What is a sandwich attack?

A sandwich attack is a transaction-ordering attack in which another trader places transactions around yours to worsen your execution price. The minimum received limits how far output can fall before the swap reverts, but it does not by itself prevent this kind of attack.