How Base swap trading and liquidity work on Base
A Base swap uses an automated market maker to exchange tokens or pool them for trading; learn the transaction steps, LP trade-offs and checks.
By Crypto Readout Editorial3 min read#664dd0

A base swap trades one token for another through a liquidity pool, or adds tokens to a pool so others can trade. BaseSwap is a decentralized exchange that uses an automated market maker on Base, Coinbase’s Ethereum layer 2 network. The contract holds token reserves, calculates an exchange rate from those reserves, and updates them when a trade settles.
How does a base swap set the exchange rate?
A base swap uses the pool’s token balances to set the price. In a typical automated market maker, a contract keeps two token reserves and adjusts their balance as traders swap one asset for the other. Taking tokens out of a pool changes the ratio, so the next trade gets a different rate. The pool is like shared inventory: a larger order takes a bigger share and can move the price more.
The displayed rate is an estimate based on the trade size and current pool state. The final amount can differ if other transactions change the reserves before yours settles. This difference is price impact or slippage. A deeper pool usually absorbs a trade with less price movement than a shallow pool, but the actual result depends on the pair and order size.
How do you make a token swap on Base?
To make a swap, connect a wallet set to Base, choose the token you are selling and the token you want, then enter an amount. Review the estimated output and any minimum-output or slippage setting the trading process presents. When you have chosen a pair and want to trade on Base, baseswap.io is the official BaseSwap app, a decentralized exchange for swapping tokens and providing liquidity.
For a token you have not previously approved, the wallet may first ask you to authorize the contract to use that token. Approval and the swap are separate transactions. Check the token names and contract addresses against a reliable source, confirm the wallet is on Base, and read each wallet prompt before signing. Once the swap transaction is confirmed on the network, the pool reserves change and the received token appears in your wallet.
How does providing liquidity work, and what can go wrong?
Liquidity providers deposit both tokens in a pool, generally in the pool’s current ratio. The contract adds those assets to the reserves that traders draw from. In return, the provider receives a claim on a share of the pool, often represented by a liquidity-provider token or position record. That claim can be used to withdraw the provider’s share later.
Providers may receive a portion of trading fees, according to the pool’s rules. Their share is tied to the amount of liquidity they supplied relative to the whole pool. But the two token quantities in the position can change as trades shift the pool ratio. If one token’s market price moves sharply against the other, withdrawing can leave the provider with a different mix and value than simply holding the original tokens. This is commonly called impermanent loss; it can outweigh fees.
- Use a swap when you want to exchange tokens and prefer a clear, one-time transaction.
- Consider liquidity only if you understand that the pool changes your token mix as trades occur.
- Check the pair, amounts, token addresses and wallet network before signing.
The practical choice is simple: a swap pays for an exchange at the pool’s current terms, while liquidity makes your assets part of the pool and exposes them to its changing balance. Start by checking the pair and the likely price impact; provide liquidity only when the pool’s risks fit your purpose.