All lessonsPools, swaps & liquidity
Slides & recap
Recap & examples
LESSON 02 · Foundations1 / 4

A swap changes the token mix

When a trader buys A with B, the pool gives out A and receives B. The LPs serving that trade now own a different mix.

  • 1CL prices change as trades use liquidity.
  • 2DLMM trades stay at one bin’s price, then move to another bin.
  • 3A pool’s tokens can change in value while it earns fees.
A trade changes what the pool holds.
Token A in the pool5 A
Token B in the pool500 B
Trader pays 125 B
Trader gets 1 A

The pool starts with both tokens.

Simple constant-product example without fees. Counts of A and B use separate scales; these are not value shares.
Each swap changes the amounts of the two tokens held by the active LPs.
Sources

← → Navigate · F Present · Esc Exit

Recap & examples
01
You sendToken AYou getToken B

A quote is an estimate

Expected output is what the trade is expected to return. For an exact-input swap, minimum received is the output floor the transaction will accept.

02
TokensNetworkTransaction

Approval and swap are two actions

An approval gives a contract a token allowance. Submitting the swap exchanges the tokens.

03
Your price range

Available liquidity shapes the quote

TVL counts a pool’s total value. The route, fees, and liquidity available at the traded prices determine your quote.

ILLUSTRATIVE EXAMPLE

A simple slippage limit

Suppose a quote expects 100 B. A 1% output tolerance gives a 99 B minimum before rounding.

What this means

The trade may return more than 99 B; that number is its minimum accepted output.

Key idea: Raising slippage tolerance allows more price movement. It does not improve the quote.

Advanced Risk Check
  • Read the quote, minimum received, route, fees, and token allowance before signing. After the swap, compare the receipt with the tokens received.
  • The 1% slippage example explains arithmetic; it is not a recommended setting. Raising tolerance allows a worse result and does not improve the quote.
  • Confirm the pool type and network. The documented Robinhood DLMM setup is fee-only; do not assume DLMM offers emissions on every network.
  • Token values can fall while a position earns fees. A larger TVL alone does not establish a better quote.
Full explanation & example

A quote estimates execution against the available route. It includes the effect of the pool prices, available liquidity and applicable fees. Subtracting a percentage fee from the input amount alone cannot tell you how many units of a different token you will receive.

For an exact-input trade, minimum received is the output floor used by the transaction. It is different from the expected output shown by the quote. The market can change between reading a quote and its execution, so review both values.

An approval grants a specified contract permission to use a token allowance. It does not itself exchange the tokens. After a confirmed approval, a swap request may still need to be submitted. Confirm the final receipt and received token rather than treating the first wallet success as completion.

Read a quote with a 1% tolerance

An illustrative exact-input quote expects 100 units of token B. A simple 1% output tolerance implies a 99 B minimum before token rounding. This illustrates the arithmetic only; it is not a recommended slippage setting.

The 1 B difference is permitted execution movement, not another guaranteed fee. A 101 B result is also possible; the tolerance does not force a worse fill.

Common mix-ups

“Raising slippage makes my quote better.”

It broadens the range of execution outcomes the transaction will accept.

“A token approval means the swap succeeded.”

Check the actual swap transaction and the received asset. Approval and exchange are distinct actions.

Discussion question

Why might a pool with more TVL offer a worse quote for your trade?

Show the answer

Some liquidity may sit away from the traded price. Fee level, the depth crossed by the trade and the complete route all affect the actual output.

Sources