A swap is the exchange of one cryptocurrency token for another, typically performed through a decentralized exchange or AMM. Unlike traditional order book trading, swaps on DEXs are executed against liquidity pools in a single transaction. Swaps are one of the most fundamental actions in DeFi. The term can also refer to atomic swaps (trustless cross-chain exchanges) or token migration events where old tokens are exchanged for new ones.