Position Close Confirmation Overlay
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
Position Close Confirmation Overlay is a trading tool that watches the page for position close buttons, liquidation warnings, or exit trade interfaces, then intercepts the close action and displays a comprehensive confirmation overlay showing the position details, current PnL, estimated exit price, slippage, and gas cost before confirming the close. It scans the page for close buttons, reads position details from the page DOM, queries the connected EVM chain for current gas prices, calculates estimated exit proceeds and risk metrics, and provides a risk summary requiring explicit confirmation before executing the close transaction.
WHERE IT RUNS
This tool operates as a panel within the BotGentz browser extension, available for Chrome, Firefox, Edge, and Brave. It works on any webpage displaying trading positions, close buttons, or exit interfaces. Common sources include perpetual DEXes (GMX, dYdX, Perpetual Protocol), margin trading platforms, and DeFi trading interfaces.
HOW TO USE
Navigate to any page where you have an open trading position. Open the BotGentz extension and select Position Close Confirmation Overlay from the tool menu. The panel will appear on the side of your browser. Click the "Connect Wallet" button to connect your EVM wallet. Click the "Detect & Intercept Close Buttons" button to find and intercept close buttons on the page. When you click a close button, a comprehensive confirmation overlay will appear showing position details, PnL, estimated proceeds, slippage, and gas costs. Review the details and click "Confirm Close" to execute or "Cancel" to abort. You can customize min profit threshold, max slippage, and enable auto-detection in the settings.
TECHNICAL SECTION — POSITION CLOSE INTERCEPTION AND CONFIRMATION
This tool uses a multi-stage pipeline to intercept and confirm position closes. First, it scans the page DOM for position close buttons using keyword matching (close, exit, sell, liquidate, reduce, take profit, stop loss) and detects their presence. Second, it reads position details from the page DOM including entry price, current price, position size, leverage, PnL, liquidation price, collateral, and trading pair using regex patterns and DOM traversal. Third, it intercepts click events on close buttons using event listeners with preventDefault() to block immediate execution. Fourth, it queries the connected EVM chain via window.ethereum using eth_gasPrice to get current gas prices, then calculates effectiveGasPrice (post-EIP-1559) for accurate gas cost estimation. Fifth, it calculates estimated exit proceeds based on position size and current price, slippage based on configurable thresholds, and net proceeds after gas costs. Sixth, it determines risk level based on PnL (positive: low risk, negative >$10: high risk, otherwise medium). Seventh, it displays a comprehensive confirmation overlay showing all position details, PnL, estimated proceeds, gas costs, and risk summary. Finally, upon user confirmation, it triggers the original close button's click event to execute the transaction. Actual gas costs are calculated using receipt.effectiveGasPrice from the transaction receipt.
THE PANEL
The side panel is designed for seamless integration into your browsing workflow. You can drag it to either side of the window, and it remembers your preferred position per website. It supports snap-to-edge behavior and can be collapsed to a small tab for minimal distraction. The panel is resizable horizontally and vertically, with a minimum width of 280px and maximum of 600px. Pressing the Escape key closes the panel. All settings are saved locally.
PLEASE NOTE
This tool requires the free BotGentz extension and a real EVM wallet extension (such as MetaMask) already installed in your browser. It works with EVM-compatible chains (Ethereum, Polygon, Arbitrum, Optimism, etc.). Cannot guarantee accurate price quotes due to market volatility. Relies on the page exposing position details in a detectable format. Some platforms may not expose PnL or position details in the DOM. Cannot predict slippage in extreme market conditions. Requires the page to have a consistent UI pattern for position closing. Websites change their trading page formats frequently, and extraction scripts may need periodic updates. This tool does not store or transmit page content except for the address and gas queries sent to the EVM network. No browsing history or personal data is collected or retained.