Skip to the article
Token Wire

News from across crypto

Why Swap Prices Can Change Within the Same Block

Same-block swap prices can move as trades change pool reserves, so transaction order, pool depth and execution quotes matter more than a block-level average.

The Token Wire Desk3 min read

Why Swap Prices Can Change Within the Same Block

A swap can execute at a different price from another swap in the same block because each trade may change the pool before the next one runs. A block is a batch of transactions recorded together, but those transactions still have an order. For traders, that means a chart showing one price per block can hide meaningful differences in what people actually paid.

Why can two swaps in one block get different prices?

Each swap is priced against the pool’s reserves at the moment it executes. In a common automated market maker, a pool holds two tokens and uses their changing quantities to set an exchange rate. When someone trades one token for the other, the reserves shift. A later trade in the same block may therefore face a new rate, even if only a short time has passed.

The size of the trade matters too. A large order uses more of the available reserves and usually pushes the execution price further from the pool’s starting rate. That difference is called price impact. If another trade runs first, it can change both the starting rate and the impact of the next order. For a closer look at checks around a Base swap before trading or adding liquidity, see the related guide.

What does transaction order tell you?

Transaction order shows which state each swap encountered. A blockchain’s final record gives the sequence, while an explorer or data tool may show each transaction’s input, output and execution details. Compare those details rather than assuming that all swaps in a block shared one price.

Order can also help explain a sudden move. A big trade may shift a pool, and following swaps may then execute at worse rates for buyers or sellers on the affected side. But order alone does not prove why a trader acted, or whether one swap caused a wider market move. It shows what happened in the pool, not the trader’s intent.

Which price should you compare?

Use the execution price for a specific trade, and compare it with the pool’s rate just before that trade if you want to understand its price impact. The token amounts sent and received provide the basis for the execution price. Fees and any transfer taxes can affect the amount received, so the displayed rate may not tell the whole story.

  • Pool rate: the exchange rate implied by the reserves at a particular moment.
  • Execution price: the effective rate for the amounts actually exchanged.
  • Block-level price: a summary that may average or select one point, depending on the data source.
  • Slippage: the gap between an expected rate and the final execution rate.

These measures answer different questions. A block-level chart is useful for broad direction, but it can smooth over price changes between transactions. To judge a trade, use its own execution data and the pool state around it.

How can you read a same-block price move?

Start by checking the order and token amounts of the swaps you are comparing. Then look at the pool’s reserves before and after each trade, if that data is available. This helps separate a reserve-driven change from a charting difference or a trade with unusually high price impact.

For most readers, the practical takeaway is simple: treat a block as a sequence, not a single instant with one shared price. Watch how trades affect pool depth and execution quotes, especially when comparing a large swap with smaller trades around it.