Add an Enso slippage action, or another documented check, on an intermediate Bundle output. Chain the amount with useOutputOfCallAt and set bps in basis points.
Definition
A Bundle can include explicit checks between actions, so a later step does not run if an intermediate output is below a tolerance you set.
How it works
After a route or deposit action, add an action with
protocolensoandactionslippage.Point
amountOutat the earlier output, for example{ "useOutputOfCallAt": 1 }, and setbps(for example"50"for 0.5%).Some check actions do not expose a normal consumable output. Consult the action output table before chaining a later step off a check.
Same-chain actions, including checks, succeed or revert together.
How Enso does this
The Bundle API example places an enso slippage action after a deposit that consumed a route output. See the Bundle Actions Reference for other checks and their inputs. This is separate from the request-level slippage field on a Route call.
FAQ
Is this the same as Route slippage?
No. Route slippage protects the overall quote. A Bundle slippage action is a check on a specific intermediate output.
What unit is bps?
Basis points: "50" is 0.5%.
Related articles
What is useOutputOfCallAt?
How do I chain bundle actions together?
What is slippage in DeFi?
How do I set slippage on an Enso route?
How do I bundle multiple DeFi actions into one transaction?
