This app runs inside the BotSurf browser. Don't have it yet? Get the app or extension now!

DEX Pool Imbalance Alert

Trading · All
0 installs · Verified BotGentz app
Launch App
Opens in BotSurf — try it free, no account needed.
CategoryTrading
PlatformAll
Pricing Free
Installs0
Download BotSurf to use — free
No account needed for free apps. Once BotSurf is open, find this app in Apps from the + menu.

About this app

WHAT IT DOES

DEX Pool Imbalance Alert is a powerful arbitrage and market-making tool that monitors DEX pool reserve balances and identifies profitable rebalancing opportunities. When you're on a supported DEX (Uniswap, SushiSwap, 1inch, Curve, or Balancer) with a selected token pair, the tool fetches the current pool reserves via eth_call to the pool contract (getReserves, getPoolTokens, or similar) and calculates the actual price, expected price (based on the pool's fee tier), and the deviation percentage. The panel displays the current reserve ratio, actual price, expected price, imbalance percentage, and total pool depth. It calculates the arbitrage opportunity size—the amount needed to rebalance the pool—and estimates the potential gross and net profit after gas costs. When the pool imbalance exceeds a configurable threshold, the tool sends a desktop notification and provides a "Rebalance" button that constructs and sends a swap transaction to rebalance the pool by buying the underpriced token and selling the overpriced token, capturing the profit. Auto-rebalance mode is available for advanced users. All rebalance history is tracked for performance analysis.

WHERE IT RUNS

This overlay operates on major DEX platforms including Uniswap (app.uniswap.org, uniswap.org), SushiSwap (sushi.com), 1inch (1inch.io), Curve (curve.fi), and Balancer (balancer.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 any supported DEX and select a trading pair. The tool automatically detects the token pair and fetches the pool reserves to calculate the current imbalance. The panel displays the pool metrics including reserve ratio, actual price, expected price, imbalance percentage, and total liquidity. If an imbalance is detected, the panel shows the rebalance opportunity with gross and net profit estimates. Configure your settings: set the imbalance threshold percentage (default 2%)—the tool alerts when the imbalance exceeds this value; set the minimum rebalance profit (default 0.005 ETH); set slippage tolerance; enable auto-rebalance for automated execution; and toggle notifications. Click "Rebalance Pool" to execute a rebalancing swap—the tool will calculate the optimal swap amount and send the transaction through your wallet. Use the "Refresh" button to manually update pool data, "Save Settings" to apply changes, and "Copy Report" to export a summary. The tool tracks all rebalance history for performance review.

MECHANISM: POOL RESERVE MONITORING WITH REBALANCE PROFIT CALCULATION AND AUTO-EXECUTION

The extension implements a continuous pool monitoring system using eth_call to fetch reserve data from the DEX pool contract. For Uniswap-style pools, the tool calls getReserves() to obtain the reserve0 and reserve1 values, then calculates the spot price as reserve0/reserve1. For Curve pools, the tool uses get_virtual_price() and get_balances() to determine the actual price and the expected price based on the pool's fee tier and amplification factor. For Balancer, the tool uses getPoolTokens() to fetch token balances and calculates the price using the pool's weights. The imbalance percentage is calculated as ((actual_price - expected_price) / expected_price) * 100. The rebalance amount is computed as the amount of the overpriced token needed to bring the pool back to equilibrium, calculated using the constant product formula (x*y=k) or the appropriate invariant for each pool type. The profit calculation estimates the gross profit as (price_difference * rebalance_amount), then subtracts the estimated gas cost (using the current gas price multiplied by the estimated gas limit of ~150,000 gas for a single swap). The execution uses ethers.js loaded at runtime to construct a swap transaction via the DEX router contract, with slippage protection using the user's configured tolerance. Auto-rebalance mode automatically executes rebalancing swaps when profitable opportunities are detected. All rebalance history is stored locally using GM_setValue, tracking the imbalance percentage, net profit, and execution status. The tool monitors pool data at 30-second intervals, with automatic refresh on page 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 pool imbalance monitor (DEX name, chain, wallet address, token pair, gas price), pool metrics (reserve 0, reserve 1, actual price, expected price, imbalance percentage, total liquidity), rebalance opportunity (profit details with gross and net profit, rebalance amount, profit per unit, and Rebalance button when profitable), settings (imbalance threshold input, minimum profit input, slippage input, auto-rebalance toggle, notification toggle), history (recent rebalances with imbalance percentages, profits, and timestamps), and action buttons (Refresh, Save Settings, Copy Report, Clear History). The imbalance percentage is color-coded—green for balanced, yellow for approaching threshold, red for imbalanced. 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 rebalancing is executed—each rebalance costs gas and executes a market swap. The tool cannot detect pool imbalance for pools that are not actively displayed on the page; depends on DEX price feeds which may be manipulated or delayed; cannot guarantee rebalancing at the exact calculated price due to slippage and market volatility; does not support non-EVM chains where DEX interfaces differ; cannot detect if other arbitrageurs are already rebalancing the pool; cannot account for MEV competition; cannot execute rebalancing on pools that require multiple steps to interact with; does not support pools with complex fee structures beyond the standard fee tiers; and gas costs may make small imbalances unprofitable. 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. Pool rebalancing is not guaranteed to be profitable due to slippage, front-running, and gas costs. Always monitor your transactions and verify rebalance opportunities independently before executing.

Similar Apps

Log in to BotGentz

Suggest an App

Tell us what you'd find useful — if we build it, we'll email you the moment it's ready.