← Academy library

Crypto / Evergreen

Token approval and swapping are separate authorizations

A token approval grants a spender permission to move specified tokens, while the swap transaction invokes the exchange operation that uses that permission.

THE IDEA TO KEEP

Preparing an asset for a swap changes future spending authority even when the swap itself never completes.

The distinction that matters

A token approval grants a spender permission to move specified tokens, while the swap transaction invokes the exchange operation that uses that permission. In an automated market maker, available reserves or active liquidity determine the quoted trade along a pricing curve. A router may choose among several pools or combine routes. The displayed quote is therefore a calculation about a particular path and state, not an unconditional offer from every possible counterparty.

How the mechanism works

The approval can persist after the swap and may cover a larger amount than the particular trade requires. Execution changes the state, and other transactions can change it before the user's transaction arrives. Several costs can appear in the same trade: pool fees, movement along the pricing curve, market changes before inclusion, and network execution charges. A minimum-output condition limits what the contract is allowed to deliver, while a deadline limits when the authorization remains usable. Neither guarantees execution.

A worked situation

Consider this hypothetical situation: A hypothetical user approves a router for a broad allowance, then cancels the intended swap before it executes. No exchange occurs, but the allowance can remain active because cancellation of the swap does not automatically revoke the earlier approval.

Where interpretation can fail

An interface that presents the actions as one workflow can make this continuing permission easy to overlook. Review the approval transaction and current allowance independently of the swap's success or failure. Preparing an asset for a swap changes future spending authority even when the swap itself never completes.

The wider technical implication

Approval management is especially important when a router is upgradeable or when several interfaces share the same spender infrastructure. The website used for one trade may disappear while the permission remains attached to the spender address. Conversely, changing to a new router can require a fresh approval without automatically removing the old one. Current allowance state is therefore more informative than a history of completed swaps. A permission inventory should connect each allowance to the actual spender contract and its powers, while recognizing that revocation affects future use rather than transfers already completed.

A global perspective

Swap interfaces, pool access, token classification, and reporting obligations can differ by jurisdiction. Technical availability does not establish regulatory status.

Sources & further reading

Uniswap documentation — Swaps ↗Ethereum.org — Decentralized finance ↗

Sources checked Oct 27, 2026. Educational examples. Historical observations are attributed to their sources. No affiliation with cited organizations.

Make the idea stick.

Mark complete when you are ready. Reaching the end alone does not mark a lesson complete.

What assumption in this guide would change the result in a different situation? Revisit the example and explain that change in your own words.

Explore crypto →

KEEP THE CONNECTION

Your next useful question.

Your saved guides →