minAmountOut is a floor on output: the transaction should not complete if the user would receive less than that amount. Enso requests use either slippage or minAmountOut, not both.
Definition
A quote returns an expected output (amountOut) and, when available, a protected minimum (minAmountOut). The minimum is what execution is held to. If the on-chain result would fall below it, the swap or route should revert rather than fill at a worse rate.
How it works
You either send a slippage tolerance and let the service compute the minimum, or you send an explicit
minAmountOut.The quote response can include both the expected output and the calculated minimum, even when you only sent slippage.
Setting both in the request is not supported. Some routes, including Solana destinations, require slippage and reject an explicit
minAmountOut.Show both numbers on the quote screen. Do not edit the returned transaction to change the floor.
How Enso does this
On POST https://api.enso.build/api/v1/shortcuts/route, pass slippage in basis points or minAmountOut, not both. On an intent route, the keeper enforces the minimum on the destination chain. For Solana destinations, use slippage only; the response can still include a calculated minAmountOut. See DeFi and Swap Routing and Solana routing.
FAQ
Can I set slippage and minAmountOut together?
No. Use one or the other. If you need a specific floor, set minAmountOut alone on routes that accept it.
Why can’t I set minAmountOut on a Solana route?
Solana destination routes require slippage instead, including a value of "0" for minAmountOut. Review the calculated minimum in the response.
Related articles
How do I set slippage on an Enso route?
What is slippage in DeFi?
What if slippage is too tight and the swap reverts?
What is price impact?
Can I route assets to Solana with Enso?
