Memecoin trading 2 min read

Exact input or exact output on a token swap?

Compare the fixed side, transaction boundary and remaining uncertainty on two token swap instructions.

Stacks of copper tokens rest on the two pans of a brass balance.
View the worked illustrationClose illustration

Scroll the illustration to inspect the details.

At 1.01 ETH the example meets its boundary. At 1.03 ETH it exceeds it, before gas.

An exact-input swap fixes the amount of the input token and sets a lower bound on the output. An exact-output swap fixes the output and sets an upper bound on the input. Find the fixed side first. Two quotes showing 1,000 tokens can represent different commitments.

Read both examples in the same units

Suppose the first confirmation fixes the input at 1 ETH and prints a minimum of 990 tokens. It might return 1,000 or 997 tokens, but a successful swap governed by that minimum must return at least 990 under these assumptions. The second confirmation requests exactly 1,000 tokens and permits up to 1.02 ETH in input. If the route needs 1.01 ETH, the input is within the maximum. If it needs 1.03 ETH, it exceeds the bound.

The examples assume supported ordinary tokens and a route offering both instruction types. Gas is paid separately. An input maximum of 1.02 ETH does not promise that 1.02 ETH covers all changes to the wallet balance. Also distinguish the maximum input for this swap from an existing contract’s spending allowance.

Match the instruction to the actual constraint

If the fixed figure comes from a budget, read the minimum output line. If a specified token quantity matters, read the maximum cost and whether the interface supports exact output for that asset. Save the quote timestamp and boundary if you later compare it with the transaction receipt.

The minimum-output example shows how a quoted amount can change before a transaction executes.

Single Swaps · Price Impact vs Price Slippage – Uniswap Labs

Compare memecoin trading platformsOrder types, fees and supported networks

Read next

More from this space