> For the complete documentation index, see [llms.txt](https://resource.optiswap.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://resource.optiswap.pro/optiswap/slippage-handling.md).

# Slippage Handling

While we're at it, who decided to slippage tolerance should be a percentage of the order?

The transaction costs for a MEV bot to break even on a sandwich attack does not depend on the size of the sandwiched order. It depends (mainly) on Ethereum network conditions.

So instead of percent-based slippage, we set an absolute amount of ETH tolerance, targeted exactly at the breakeven point for front-running bots.
