The two causes
The market moved. Between the moment you see a quote and the moment your trade runs, other trades change the price. On a blockchain that gap is a few seconds, which is long in a fast market.
Your own order moved it. This part is called price impact. A buy takes the cheapest offers first, so the larger your order is compared with the money available in that market, the worse your average price gets.
In NeuroWallet, you’re asked to confirm a trade whose price impact is 8% or more.
Price impact in numbers
On a decentralized exchange, a token trades against a pool of funds. Take a standard pool that holds two assets in equal value:
- In a pool holding $1,000,000, a $100 buy moves the price by about 0.02%.
- In a pool holding $5,000, the same $100 buy moves it by about 4%.
The token and the amount are the same. Only the liquidity changed.
Slippage tolerance
Most trading apps ask you to set a tolerance: the most slippage you accept. If the price moves past it, the trade fails instead of filling.
- Too tight, and trades keep failing when the market is busy.
- Too loose, and you accept a bad price. Bots look for this: one buys just ahead of you and sells right after, and keeps the gap up to your tolerance. It’s known as a sandwich attack.
How to keep slippage small
- Trade where the liquidity is. Check it before you buy a small token, or ask how much a buy would move the price.
- Split a large order into several smaller ones.
- Use a limit order when the price matters more than the timing.
- Read the quote. Look at the price impact and at what you receive, not only at the token’s price.
Slippage on Neurobro
In NeuroWallet the route is picked automatically and slippage is set for you, so there is no tolerance to tune.
- The quote holds for 60 seconds, then refreshes because prices move.
- Price impact is shown from 3%. At 8% or more, or if you’d get more than 15% less than the market value, the app asks you to confirm.
- Thin markets are refused. A buy doesn’t run when the token has less than $10,000 of liquidity. Tokenized stocks are exempt from that floor.
- If prices move before your order goes through, the trade fails and you get a fresh quote.
- On perps, a market order that opens a position fills at most 0.5% from the current price, or it’s canceled. A close allows up to about 8%, so you can still get out when prices move fast.
The details are in Buy and sell in NeuroWallet.