Minimum Output Risk Explainer
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
Minimum Output Risk Explainer is a read-only tool that analyzes the minimum output amount (amountOutMin) set in a swap transaction, generating AI-powered assessments of whether it is realistic given market conditions and slippage. It reads swap transaction calldata, min output amount, token addresses, token symbols, token decimals, swap amount, price quotes from DEXes, pool liquidity depth, estimated price impact, current market price, slippage parameters, gas price, deadline, block number, timestamp, route complexity, and mempool conditions (simulated). The tool then presents this data alongside an AI-generated analysis of whether the minimum output is realistic, evaluating whether it is set too high (risking transaction failure) or too low (risking poor execution), and recommending adjustments before you sign the transaction.
HOW TO USE
Connect your wallet using the BGWallet bridge and select your target network. Enter the token in address, token out address, the amount you want to swap, and the minimum output you expect to receive. Click "Analyze min output risk" to read on-chain market data. The tool displays the token in, token out, amount, min output, expected output, and risk level (Low/Medium/High). Detailed information includes price impact, liquidity depth, market price, slippage, recommended minimum output, route complexity, and mempool condition. A risk score meter visually indicates the overall risk level. An AI explanation appears below the on-chain data, analyzing the minimum output amount set for the swap, assessing whether it is realistic given current market conditions, evaluating whether it is set too high (risking transaction failure) or too low (risking poor execution), and recommending adjustments if needed before you sign the transaction. The wallet's own signature step still protects you — this explanation is informational only and does not replace reviewing what you approve in your wallet.
TECHNICAL MECHANISM
The tool uses ethers.js v5.7.2 with the provider from the BGWallet bridge to read on-chain market data. No hardcoded contract addresses are used — you are always in control of which contracts you trust. When analyzing minimum output risk, the tool reads token addresses from the user input and resolves them to symbols and decimals via token contract calls, reads the swap amount from the user input, reads the min output amount from the user input, fetches price quotes from DEXes by calling their router contracts' getAmountsOut() or getAmountsIn() functions, reads pool liquidity depth via pool contract's getReserves() or similar functions, estimates price impact by comparing the swap amount to the pool's liquidity, reads current market price from the DEX quotes, reads slippage parameters from the user input or transaction, reads gas price from the provider, reads block number and timestamp from the provider, analyzes route complexity by counting hops and protocols, and simulates mempool conditions by analyzing pending transactions. The tool fetches quotes by walking backwards in chunks and halving chunk size on failure, ensuring quotes are properly read despite varying RPC limitations. The data is formatted and passed to the AI bridge via BGAI.generate() with a structured prompt that includes all the on-chain data read. The AI is instructed to analyze the minimum output amount set for the swap, assess whether it is realistic given current market conditions, evaluate whether it is set too high or too low, and recommend adjustments — while stating plainly that it cannot predict price movements between quote and execution, cannot guarantee that the minimum output will be met, and cannot detect mempool conditions or front-running risks with certainty. The AI response is capped at 1,024 tokens to ensure concise, focused min output risk assessments. All computed values are guarded against negative numbers — if a price impact or output amount appears invalid, the tool flags it rather than displaying nonsensical values.
WHAT IT CANNOT SEE
This tool cannot predict price movements between quote and execution. It cannot guarantee that the minimum output will be met. It cannot detect mempool conditions or front-running risks with certainty. It cannot account for MEV extraction that may affect the execution price. It cannot guarantee that the swap will succeed even if the min output appears achievable. The AI explanation is generated from on-chain data only and cannot detect real-time market movements, front-running, sandwich attacks, or off-chain liquidity changes. It cannot predict whether the minimum output will be achievable by the time the transaction is mined. The tool does not continuously monitor min output conditions; each analysis is a snapshot at the time of the lookup. It cannot detect delayed execution, mempool congestion, or off-chain factors. The tool does not store any data persistently; all state is in-memory and resets on reload. The AI explanation is informational and does not constitute financial advice, legal advice, or a guarantee of swap success or optimal execution.
PLEASE NOTE
Minimum Output Risk Explainer works exclusively with EVM-compatible chains. It requires a Web3 wallet (MetaMask or similar) and the BGWallet bridge. Explanations are AI-generated from data the app reads on-chain — always review what you are actually signing in your wallet before approving it. The minimum output parameter is critical for swap transactions; if set too high, the transaction will revert and you will still pay gas fees. Use this tool as a guide only; always cross-check with independent sources and verify transaction details manually for critical decisions. This is experimental software; use at your own risk.