What does the function in the smart contract of the token look like that limits the maximum slippage when trading on any DEX exchange, for example, by setting the value to 1%. but the function must not create other vulnerabilities. I need this to prevent the sandwich attack.