DEV Community

Verixia
Verixia

Posted on

Slippage and priority fees: the two settings that decide your Solana swap

Most failed or disappointing swaps on Solana come down to two settings people leave on default: slippage tolerance and priority fee. They control different things — price and speed — and getting them right for the moment is most of the skill.

Slippage tolerance: the price guardrail

Slippage is the difference between the price quoted when you build a transaction and the price when it actually executes. Your slippage tolerance is the largest such difference you will accept before the transaction reverts instead of filling.

The right number depends on liquidity and volatility, not preference. A deep, stable pair can fill fine at a fraction of a percent. A freshly launched, thinly traded token can move several percent between blocks — set tolerance too low there and every attempt reverts; set it high and you may accept a much worse fill than you expected. The honest read of a revert on a volatile token is often "the price moved and the guardrail did its job," not "the swap is broken."

Priority fees: paying for block space

Solana orders transactions within a block partly by the priority fee attached to them. When the network is quiet, the base fee is enough. When it is busy — a popular launch, a volatile hour — transactions compete, and a higher priority fee is what gets yours included sooner.

This is why bumping the priority fee lands a stuck swap faster than resending it at the same fee: resending just adds another low-priority transaction to the queue. It is also why a fee is not wasted money in congestion — it is the price of landing in the block you want rather than three blocks later at a different price.

Putting them together

Think of it as two questions. "At what worst-case price am I still willing to trade?" sets slippage. "How badly do I need this to land right now?" sets the priority fee. On a calm day for a liquid pair, defaults are fine. On a busy day for a volatile token, you generally want a realistic slippage tolerance and a priority fee that reflects the competition.

A good swap interface exposes both settings plainly instead of hiding them. Verixia does — you set slippage and priority fees yourself, sign from your own wallet, and route through Jupiter for the price. The settings are the same everywhere on Solana; the only thing that changes is whether the tool lets you see and control them.


Written by the team at Verixia, a Solana swap interface routing through Jupiter.

Top comments (0)