Skip to main content
Merkle Street

Protocols, markets, policy, people

A Base Swap Is the Trade; the Pool Is What Makes It Work

A swap is a trade; a pool supplies tokens and sets the price. See which fits a one-off trade, and what you take on when you provide liquidity.

Merkle Street Newsroom#dacb213 min read

Abstract cover artwork

A token swap is a trade between two assets; a liquidity pool is one way that trade gets priced and filled. On Base, a swap request goes to a smart contract through a wallet or trading interface. The contract checks the pool’s reserves, calculates how many tokens the trade can return, and executes the exchange if the user accepts the terms. The wallet then asks the user to approve and submit the transaction.

How does a token swap work on Base?

A swap sends one token into a pool and takes another out. In a common automated market maker, the pool holds reserves of both tokens. Its contract uses their relative quantities to set the exchange rate. A larger trade changes that balance more, so the rate can move before the full order is filled. That movement is price impact.

The interface estimates the output and may show a fee and slippage setting. Slippage is the amount the final result can differ from the estimate before the transaction is rejected. The user checks the token addresses, output, and limits, then signs. The transaction runs on Base, and the contract transfers the input and output tokens if its conditions are met. A fuller explanation of how a Base swap works as an exchange covers the trade mechanics in more detail.

Think of the pool as a shop shelf with prices that shift as stock changes. The analogy ends there: a pool is governed by code, and its reserves can change with every trade or liquidity deposit.

What does a liquidity pool do?

A liquidity pool holds tokens so traders can swap without waiting for another person to accept a matching order. People who deposit the required tokens become liquidity providers. The contract issues a record of their share, and that share entitles them to a portion of the pool’s assets and, depending on the pool’s rules, trading fees.

Providing liquidity is a different action from swapping. A trader pays to exchange tokens and leaves with the chosen asset. A provider commits assets to the pool and takes on the risk that its mix changes as trades happen. If one token’s market price moves relative to the other, the provider’s eventual share can be worth less than simply holding the original tokens. This is often called impermanent loss; it becomes a realized difference when the provider withdraws.

The pool’s design matters. Some require deposits in a set ratio; others allow liquidity within a chosen price range. A narrow range can put capital to work more actively while prices stay inside it, but may leave the position holding mostly one token if the price moves outside. Fees can offset some costs, but they are not guaranteed profit.

Should you swap tokens or provide liquidity?

For most people with a specific purchase or conversion in mind, a swap is the direct choice. Providing liquidity makes sense only if you understand the pool’s rules and want to commit assets to support trading. They solve different problems: one gets a trade done, the other supplies the inventory traders use.

  • For a one-time conversion, compare the quoted output, fee, and slippage limit before signing.
  • For a large trade, check whether the pool’s depth is likely to make price impact substantial.
  • Before depositing, read how the pool handles token ratios, fee distribution, and withdrawals.
  • Before either action, verify the token addresses and transaction details in your wallet.

The practical test is simple: if you want to leave with a different token, swap. If you want to supply assets and accept changing balances in return for possible fees, study the pool first. The pool is not a better version of a swap; it is the mechanism that can make one possible.