DEX Stop-Loss Watcher
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
DEX Stop-Loss Watcher is a powerful risk management tool that monitors your DEX positions and automatically triggers stop-loss orders when prices drop below your configured threshold. When you're on a supported DEX (Uniswap, SushiSwap, 1inch, or Curve) with an open position, the tool detects your token pair, position size, and entry price from the page. It continuously monitors the current price via the DEX's price feed or on-chain oracle using eth_call to the pool contract's getReserves() or similar function. The panel displays your current price, entry price, unrealized P&L, and the configured stop-loss price. When the price drops to or below the stop-loss level, the tool sends a desktop notification and automatically constructs a swap transaction to sell your position at the current market price. A confirmation step prevents accidental triggers, while advanced users can enable auto-execute for fully automated stop-loss orders. The tool tracks stop-loss trigger history and provides visual price monitoring.
WHERE IT RUNS
This overlay operates on major DEX platforms including Uniswap (app.uniswap.org, uniswap.org), SushiSwap (sushi.com), 1inch (1inch.io), and Curve (curve.fi). It works in any browser that supports the BotGentz extension framework and has an EVM-compatible wallet extension installed. The panel activates automatically when you're on a supported DEX page with an active trading pair.
HOW TO USE
Install the extension and connect your wallet. Navigate to a supported DEX and open a position on any trading pair. The tool automatically detects your token pair, position size, and entry price from the page. Configure your stop-loss percentage (default 5%)—the tool calculates the stop-loss price based on your entry price. Enable auto-execute if you want the tool to automatically sell your position when triggered (requires confirmation toggle). When the price drops below your stop-loss level, the tool sends a notification and displays a "Sell Now" button. Click "Sell Now" to execute the sell order, or if auto-execute is enabled, the order executes automatically. Review the stop-loss trigger history for past events with timestamps, trigger prices, and execution status. Use the "Refresh Price" button to manually update the current price, "Save Settings" to apply changes, and "Copy Report" to export a summary.
MECHANISM: PRICE MONITORING WITH ON-CHAIN ORACLE INTEGRATION AND AUTOMATED SWAP EXECUTION
The extension implements a continuous price monitoring system using the DEX's on-chain pool contract. For each supported DEX, the tool identifies the pool contract address from the page and calls getReserves() (or equivalent) via eth_call to fetch the current reserve ratio, calculating the spot price from the reserves. The tool also uses the DEX's quote function where available for more accurate pricing. The stop-loss engine calculates the trigger price as entry price * (1 - stop_loss_percentage / 100) and compares it against the current price at 15-second intervals. When triggered, the tool uses ethers.js loaded at runtime to construct a swap transaction—calling the DEX router contract's swapExactTokensForTokens or swapExactETHForTokens function with the appropriate path and slippage parameters. The transaction uses the user's connected wallet as the signer. Gas estimation is performed with a configurable multiplier to prioritize execution during volatile conditions. The confirmation step includes a 5-second countdown before auto-execution, allowing manual cancellation. The stop-loss trigger history is stored locally using GM_setValue, tracking the trigger price, stop price, timestamp, and execution status. Price data is also cached to reduce RPC calls, with automatic refresh on page navigation or price updates.
THE PANEL
The overlay panel is fully draggable via its title bar and remembers its position per-site using GM_setValue. It snaps to the nearest edge when dragged within 40px of any screen boundary. The panel includes clear sections for stop-loss watcher (DEX name, chain, wallet address, token pair, current price, entry price, P&L, stop price, position size, status indicator), controls (Sell Now button when triggered, or monitoring status), settings (stop-loss percentage input, minimum position size input, auto-execute toggle, notification toggle), history (recent triggers with timestamps and execution status), and action buttons (Refresh Price, Save Settings, Copy Report). The status indicator color-codes the current state—green for monitoring, yellow for approaching stop, red for triggered. Pressing Escape temporarily dismisses the panel until you navigate to a new DEX page or manually reactivate.
PLEASE NOTE
This extension requires the free BotGentz framework extension to be installed and active. You must also have a real EVM-compatible wallet extension (such as MetaMask, WalletConnect, Coinbase Wallet, or Rabby) already installed in your browser—the overlay uses your wallet's RPC provider for eth_call queries and to send swap transactions. This tool sends real on-chain transactions when stop-loss is triggered—each transaction costs gas and executes a market swap. The tool cannot detect positions that are not visible on the current page; depends on DEX price feeds which may be manipulated or delayed; cannot guarantee execution at the exact stop-loss price due to slippage and market volatility (slippage protection is applied but cannot guarantee fill price); cannot monitor positions that are not actively displayed on the page; does not support non-EVM chains where DEX interfaces differ; cannot detect if the user manually closes the position before the trigger; cannot account for gas cost in the stop-loss calculation; and does not support positions that require multiple steps to close (e.g., LP positions). No private keys, wallet balances, browsing history, or position data are ever collected, transmitted, or stored outside your local browser—all data is stored locally using GM_setValue. Stop-loss execution is not guaranteed and may fail due to network conditions, slippage, or insufficient liquidity. Always monitor your positions and verify transactions before confirming.