Sandwich Protection Toggle Tool
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
Sandwich Protection Toggle Tool is a specialized DeFi tool that reads sandwich protection contract state to enable or disable MEV mitigation for DEX trades. It fetches the user's protection status, current protection mode, slippage tolerance, maximum protection cost, protection expiry, protected token pairs, and front-running detection state. The tool reads DEX pool states, mempool conditions, gas price, and block timestamp to assess the current risk environment. It monitors the user's transaction history and detects potential sandwich attack patterns. The tool supports three protection modes: Standard (balanced protection), Aggressive (maximum protection with higher costs), and Passive (minimal protection with lower costs). Users can enable or disable protection with a single transaction, or update protection parameters independently. The tool also reads user token balances and allowances to verify protection costs can be covered.
HOW TO USE
Connect your wallet and select your network from the dropdown. Paste the sandwich protection contract address and the DEX router address you use for trading. Enter the token pair you want to protect (e.g., WETH/USDC). Click "Check Protection Status" to read your current protection configuration. The tool displays whether protection is active, the current mode, slippage tolerance, max protection cost, expiry date, protected token pairs, front-running detection status, and your transaction history. Configure your protection settings: set slippage tolerance (percentage), maximum protection cost (in ETH), and select a protection mode. Use the three action buttons: "Enable Protection" to activate sandwich protection with the configured parameters, "Disable Protection" to deactivate it, or "Update Parameters" to change settings while keeping the current active state. The toggle preview shows your current and new status before you submit any transaction.
PROTECTION STATE MANAGEMENT AND MEV DETECTION ENGINE
The tool implements a comprehensive protection state management engine that reads multiple parameters from the protection contract and monitors real-time MEV risk. It queries the protectionActive function to determine if protection is currently enabled for the user, then reads the protectionMode to identify which strategy is being applied. The tool reads slippageTolerance and maxProtectionCost to display the user's current configuration limits. It also reads protectionExpiry to warn users when their protection will expire and needs renewal. For risk assessment, the tool reads the user's protectedPairs to know which DEX pools are monitored, and frontRunningDetected to alert users if a sandwich attack was recently attempted on their transactions. The tool also reads userTxHistory to provide context on how many transactions have been protected. When enabling protection, the tool constructs the enableProtection transaction with the user's configured parameters—slippage, maxCost, and mode—and submits it to the contract. For disabling, it calls disableProtection without additional parameters. For parameter updates, it calls updateParameters, which updates the configuration without changing the active status. The tool calculates the expected protection cost based on the current gas price and the configured maxProtectionCost, and displays it in the preview to help users understand the trade-off between protection and cost.
WHAT IT CANNOT SEE
This tool cannot guarantee that the protection will prevent all sandwich attacks or MEV extraction. It cannot detect if the protection mechanism itself has been compromised or if the contract has been upgraded with malicious logic. It cannot verify that the protection contract is secure, audited, or bug-free. It cannot recover funds if protection fails to prevent a sandwich attack. It cannot provide financial, investment, or trading advice. It cannot ensure that the protected transaction will execute at the optimal price or within the expected slippage range. It cannot detect if the protection is bypassed by advanced MEV strategies such as time-bandit attacks or multi-block MEV. It cannot predict network congestion, gas price spikes, or mempool dynamics. It cannot guarantee that the protection will not interfere with legitimate transactions or cause unintended reverts. It cannot verify that the protection parameters are optimal for current market conditions.
PLEASE NOTE
This tool supports EVM-compatible chains only. It requires an active RPC connection and a wallet with signing capabilities. The tool does not custodial funds or private keys. Always verify the protection contract address and parameters before enabling. Protection is not a guarantee—use as an additional safety measure. Protection costs may vary based on network conditions. The tool is for informational and experimental use; you bear full responsibility for protection decisions.