If the market moves beyond the slippage or minAmountOut protection in the quote, on-chain execution can revert. Increase slippage in basis points only with the user’s consent, or retry when conditions are better. Do not remove protection.
Definition
Slippage is the allowed difference between the expected output and the minimum acceptable output, set in basis points (for example, "50" is 0.5%). minAmountOut is the same idea expressed as an absolute amount. A route uses one of these methods, not both.
How it works
Show the expected output and the protected minimum before the user signs.
If the transaction reverts, treat it as a protection success, not as a reason to send unprotected calldata.
Ask the user before widening slippage, or wait and request a new quote.
Rebuild the quote. Do not edit the old
tx.
How Enso does this
Set slippage in basis points, or set minAmountOut, on POST https://api.enso.build/api/v1/shortcuts/route (or on a Bundle action that includes a slippage check). The response includes simulated amountOut and, when available, minAmountOut. The API also returns priceImpact from simulation so you can warn the user before they sign. See DeFi and Swap Routing and the FAQ.
FAQ
Can I set both slippage and minAmountOut?
No. Choose one protection method.
Does a tighter value always fail?
No. Tight protection only fails if the simulated or executed output would fall below the minimum. Start from a value the user accepts, not from zero protection.
Related articles
What is slippage in DeFi?
Why did the transaction fail on-chain after I got a quote?
What if my quote expired?
How do I set slippage on an Enso route?
How do I add a same-chain swap to my app?
