Token Swap
A token swap is the exchange of one cryptocurrency token for another, usually done directly from a wallet through a decentralized exchange. The term can also mean a token migration, where a project replaces its old tokens with new ones.
On a decentralized exchange such as Uniswap, a user picks a token they hold and the token they want. A smart contract then carries out the trade, typically against a liquidity pool run by an automated market maker. The first time a particular ERC-20 token is swapped, the wallet usually asks for an approval transaction that lets the contract move that token, followed by the swap itself. Both steps cost network gas fees.
For example, someone holding USDC on Ethereum could swap it for ETH in a single transaction, without depositing funds on an exchange or opening an account. The amount actually received depends on the pool. A trade that is large relative to the pool's liquidity causes price impact, and prices moving before the transaction confirms cause slippage. Swap interfaces therefore let users set a slippage tolerance.
The second meaning, token migration, applies when a project moves to a new contract or to its own blockchain and asks holders to exchange old tokens for new ones. Some exchanges handle this automatically for their users.
Common risks include swapping into a fake token that copies a real token's name, granting unlimited approvals to untrustworthy contracts, and sandwich attacks that exploit loose slippage settings. Scammers also pose as official migrations to lure holders into connecting their wallets to malicious sites. In many jurisdictions, swapping one token for another also counts as a taxable event.