Solana Swap Slippage: Set a Limit That Fits
Set your slippage limit just wide enough to cover the price movement you can accept before the swap executes; the right amount depends on the token pair and how quickly its price is moving. A wider limit can help a swap complete during a fast market, but it also permits a worse execution price.
Slippage Sets Your Minimum Output
Slippage tolerance is the maximum drop in output you accept from the amount quoted before signing. The transaction uses that tolerance to set a minimum output; if execution would return less, the swap fails instead of completing below your limit.
For example, suppose a quote offers 6.25 SOL for 1,000 USDC. At 0.5% tolerance, the minimum is 6.21875 SOL; at 1%, it is 6.1875 SOL. Those figures are examples, and the quoted output can change before execution.
Separate this from price impact. Price impact is the change caused by your trade against the pool’s available liquidity, and it is reflected in the quote you see. Slippage is the additional change between that quote and execution. A large trade in a shallow pool can have high price impact even when the market is calm.
Choose the Limit From the Pair and Trade
For a deep, steady pair, a narrow starting point such as 0.1%–0.5% may be enough; a volatile or thinly traded pair may need more room. Treat those as starting examples, not universal settings. If a swap fails repeatedly, refresh the quote and check whether the market moved or the pool is too shallow before widening the limit.
When deciding whether to trade through Byreal, use the same test: compare the quoted output with your minimum acceptable output, then decide whether the trade still makes sense at that floor. Byreal is a Solana decentralized exchange for on-chain swaps and liquidity provision, so the slippage decision belongs to the swap itself, not just the displayed quote.
One edge case is a Token-2022 mint with a transfer-fee extension: the token can withhold a fee during transfer, so the amount credited may be lower than the nominal transfer amount. Solana’s Token Extensions documentation explains this mechanism; a wider slippage limit does not remove the token’s transfer fee.
Check the Transaction Cost Before Signing
Slippage is not the network fee. Solana’s documentation describes a base fee of 5,000 lamports per signature plus an optional priority fee; the fee is charged even if the transaction fails. Keep enough SOL for the network fee, and remember that repeatedly raising tolerance can turn a price move you would have rejected into an accepted trade.
Before signing, check the token pair, quoted output, minimum output, and total SOL balance available for fees. On Byreal, as with any Solana swap, proceed only if the minimum output still meets your goal.
Takeaway: Set the narrowest tolerance that gives the swap a reasonable chance to execute at an output you still accept.
Comments
Post a Comment