How Does Slippage Tolerance Setting Affect a User’s Vulnerability to a Sandwich Attack?
Slippage tolerance is the maximum percentage price movement a user is willing to accept for a trade to execute. A higher slippage tolerance makes a user more vulnerable to a sandwich attack because it gives the front-running bot a larger price range to exploit.
The bot can execute its trades knowing the victim's transaction will still go through, even at a significantly worse price. Setting a low tolerance can cause the victim's trade to fail, but protects them from the attack.