HomenieuwsBlockchainA 1% slippage limit can still accept a crypto swap 20% below...

A 1% slippage limit can still accept a crypto swap 20% below a reference price

Cryptofocus bron in google
Bybit - sponsored
Ontvang nu een welkomstbonus bij Bybit, maar liefst 30 USDC!

A low slippage tolerance can still allow a crypto swap at a poor price. The tolerance limits deterioration from the quote the trader accepts. Price impact can already be inside that quote. Before approving a sale, compare the quoted output with the amount expected at a suitable reference price, then read the separate minimum-output amount.

What you need to know
Price impact describes the price change caused by the trade itself.
Slippage tolerance allows a further margin beyond the quoted price impact.
An exact-input swap can include a minimum number of output tokens.
A low tolerance cannot turn an unattractive starting quote into a good one.

Uniswap’s developer explanation separates these effects. Trading against a liquidity pool changes the relative value of the assets as the trade proceeds. A large order against shallow liquidity can therefore have a poor expected execution price before anyone submits the transaction.

Two comparisons for the same sale

Take a fictional token position whose value at an independently chosen reference price is 1,000 USDC. Suppose a quote for selling the entire position returns 800 USDC, and the confirmation shows a minimum output of 792 USDC. For this simplified example, ignore network fees and assume the gap between the reference valuation and the quote comes entirely from price impact. These are illustrative amounts, not an executable order or a current token valuation.

The quote is already 200 USDC, or 20%, below the reference valuation. The displayed minimum permits another 8 USDC of deterioration from that 800 USDC quote. Eight divided by 800 is 1%. Yet execution at 792 would leave the holder 208 USDC below the original 1,000 USDC reference, a shortfall of 20.8%. A 1% margin around a bad quote is compatible with that much larger difference.

Lees ook:  WSJ meldt rol Lagarde bij Griekse Binance-aanvraag

The calculation starts with the minimum output actually displayed. It does not prescribe a universal formula for converting a wallet’s percentage setting into that amount. Interfaces, routes and rounding can differ. The reference price also needs scrutiny: a token’s last tiny trade or headline market value does not establish what a holder can receive for a larger position.

A pool reserve is a vulnerable reference

The reference itself needs a separate check. In its v2 pricing documentation, Uniswap warns developers against calculating a trade from a pool’s current reserves alone. An attacker can trade first to distort that ratio, let the victim’s swap execute at the distorted price, and trade back. The pair can satisfy its own accounting rules throughout.

That warning adds a different failure to the example above. The 1,000 USDC reference was assumed to be independently chosen. If a trader instead derives that reference from the same manipulated pool that supplies the 800 USDC quote, the comparison can miss the bad starting price. A minimum output then protects only the floor submitted with the order. Uniswap’s v2 guide describes using external price information, potentially an off-chain observation, to judge acceptable execution. This is documentation about a specific integration risk, not a finding that a particular wallet or current trade is under attack.

Read the output floor before changing the setting

For an exact-input swap, Uniswap documents a minimum-output constraint: execution below that amount causes the transaction to revert. An exact-output swap uses a different guard, a maximum amount of input tokens. Check which quantity the proposed trade fixes before interpreting its protection.

Coinbase’s wallet documentation likewise describes lower slippage tolerance as giving the trader more control over the execution price. That control concerns the acceptable movement around the proposed swap. It does not add liquidity to a pool or improve the quote the trader initially accepts.

Lees ook:  WAML's Asif Yagudaev: Use the Wrong Wallet and Your Crypto Gets Frozen

In the example, reducing the allowed deterioration to zero would still leave the initial 800 USDC quote 20% below the reference. Before deciding whether to proceed, inspect the quote for the full amount and compare available routes on the same basis, including their costs. Raising tolerance to make a failed swap pass increases the permitted deterioration; it does not solve the unattractive starting price.

Partnerdeal

Bybit - Welkomstbonus 30 USDC!

Ontvang nu een welkomstbonus bij Bybit, maar liefst 30 USDC!.

Lees hier de voorwaarden
Nu naar Bybit
Voorkeur cryptofocus google nieuws
Hubert Margarita
Hubert Margarita
Hubert Margarita is administratieconsulent en boekhouder met meer dan veertig jaar praktijkervaring in financiƫle administratie, fiscale procedures en vermogensbeheer. Hij is eigenaar van Margarita Business Administration in Zoetermeer. Hubert groeide op buiten Nederland, maar koos bewust voor Zoetermeer als vestigingsplaats. Niet toevallig. Nederland trok hem vanwege iets specifieks: de AEX en het Nederlandse belastingstelsel. Na decennia van werken met ondernemers, beleggers en particulieren besloot hij zijn kennis breder te delen. In "De Dagbalans" schrijft hij dagelijks over belasting en beurs. Hij legt uit wat de krant weglaat. Hij rekent voor wat politici niet uitrekenen. En hij vertelt u altijd wat u morgen moet doen. Geen jargon zonder uitleg. Geen uitspraken zonder onderbouwing. Veertig jaar ervaring in elke zin.
Lees ook