Token swap
A token swap is a direct exchange of one token for another in a single atomic transaction, priced by a liquidity pool on an AMM exchange.
- Category
- Trading mechanics
- Related terms
- 5
- Glossary size
- 34
- Last reviewed
- 2026-08-10
Token swap explained
A token swap is the basic trade of a DEX: you hand a pool one asset and receive the other in the same transaction. There is no order to place and no counterparty to wait for; the pool's reserves price the trade the moment it executes, and the exchange completes as one atomic unit or not at all.
The lifecycle on OneSwap is short. You pick a direction, enter an amount, and receive a quote that itemizes the real costs: the pool fee, the price impact of your specific size, and network cost. Accepting submits a transaction whose settlement moves both assets simultaneously under Canton's contract rules. If conditions shift past your slippage tolerance before settlement, the transaction fails cleanly and nothing moves.
Two properties distinguish swapping from trading on a custodial exchange. Assets never sit with an operator, so there is no withdrawal step and no operator balance-sheet risk. And execution quality is fully mechanical: the same amount against the same reserves always prices identically, which makes costs auditable in a way hidden order-book internals are not.
Entry last reviewed 2026-08-10. Live prices, reserves, and activity belong on the linked market pages, which regenerate every five minutes.
Related terms
- AMM An AMM (automated market maker) is a smart-contract exchange that prices trades from pool reserves with a formula instead of an order book.
- DEX A DEX (decentralized exchange) uses smart contracts for exchange and on-ledger settlement; the wallet custody model depends on the venue.
- Atomic settlement Atomic settlement executes every leg of a trade as one indivisible transaction: either all transfers complete together or none happen at all.
- Price impact Price impact is how much your own trade moves an AMM pool's price: the gap between the quoted marginal rate and your actual execution rate.
- Slippage Slippage is the difference between a quoted swap rate and the settled rate, caused by other trades moving pool reserves before yours lands.