Module 1 · Chapter 6 of 112 min read

Memecoin 101 · 1.6

Why your buy moves the price

Why Your Buy Moves the Price: Price Impact vs Slippage on Solana

After this chapter you can

Tell price impact from slippage, and estimate how much your own trade will move a pool's price.

The common mistake

Expecting a trade to fill at the price on screen. Your own trade moves the price while it fills, and in a small pool that can cost more than every fee combined.

Key terms in this chapter

price impact
This is called price impact: how much your own trade moves the price.
Slippage
Slippage is that extra gap between the price you saw and the price you got, caused by other trades landing before yours.
slippage tolerance
Trading apps ask you for a slippage tolerance, such as 1% or 10%.
The bigger your buy against the pool, the fewer coins per SOL
The bigger your buy against the pool, the fewer coins per SOLPool of 100 SOL and 100,000,000 PEBBLE, as in chapter 1.6.

Your buy changes the price as it fills

Chapter 1.5 showed that every buy adds SOL to the pool and takes coins out, which raises the price. That includes your buy. The first part of your order fills near the price on screen, and each later part fills a little higher. You end up paying an average that's worse than the price you saw.

This is called price impact: how much your own trade moves the price. It depends on two things only: how big your trade is and how big the pool is.

The same buy in two pools

$PEBBLE's pool holds 100 SOL and 100,000,000 PEBBLE, so the price on screen is 0.000001 SOL. At that price, 1 SOL "should" buy 1,000,000 PEBBLE.

Your buyCoins you'd expectCoins you getPrice impact
1 SOL1,000,000990,099About 1%
10 SOL10,000,0009,090,909About 9%
50 SOL50,000,00033,333,333About 33%

A quick way to estimate it: price impact is roughly your trade divided by the SOL in the pool plus your trade. 10 SOL into a 100 SOL pool is 10 ÷ 110, about 9%.

Now put the same 10 SOL into a coin whose pool holds only 10 SOL. Your buy is half of everything in the box after it lands, and you get only about half the coins the screen promised.

Slippage is the price moving before you

Your trade isn't filled the instant you press buy. Other buyers and sellers may land first, and their trades move the price before yours fills. Slippage is that extra gap between the price you saw and the price you got, caused by other trades landing before yours.

Price impact you can work out in advance. Slippage you can't, because it depends on who else trades at the same moment.

What the slippage setting does

Trading apps ask you for a slippage tolerance, such as 1% or 10%. It's the worst price you'll accept. If the price moves further than that before your trade fills, the trade fails and you keep your SOL, minus the small network fee.

A high tolerance makes a busy trade more likely to go through, but it's also a promise to accept that bad a price. Some bots watch for buys with high tolerance and trade just before and just after them to take the difference. Raise it only as far as you need.

The rule

Before you buy, compare your trade to the SOL in the pool. If your trade is a large part of it, you'll move the price a lot, and you'll move it again when you sell.

7 questions

Check yourself

Say your answer out loud or in your head first. Then open it and be honest about whether you got it.

0 / 7 right
  1. 1
    What's the difference between price impact and slippage?
  2. 2
    Roughly how much price impact does a 5 SOL buy have in a pool holding 45 SOL?
  3. 3
    Before you buy, what one comparison tells you how much you'll move the price?
  4. 4
    You can work out price impact before you trade. Why can't you work out slippage?
  5. 5
    Your slippage tolerance is 2%, and the price moves 5% before your trade fills. What happens?
  6. 6
    Why can a very high slippage tolerance cost you?
  7. 7
    Recap · 1.5A pool holds 100 SOL and 100,000,000 coins. What is the price of one coin?
Finished this chapter?Mark it complete to track your progress on the course page.

Education, not financial advice. Crypto can lose all its value.