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.
View the worked illustrationClose illustration
Scroll the illustration to inspect the details.
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
Read next
More from this space
-
2 min read
US memecoin swap records when no cash changes hands
Reconstruct a US investor’s example token-for-token disposition using dollar basis, value received and transaction records.
-
2 min read
A hidden or unsolicited token in Phantom: what changed?
Separate a wallet’s visibility warning from token ownership and a verified or realizable dollar value.
-
2 min read
A frozen Solana token account can still show a balance
Check the transfer state of each token account and distinguish the freeze authority from the mint authority.