Multi-Hop Swap 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
Multi-Hop Swap Risk Explainer is a read-only tool that analyzes multi-hop swap transactions and generates AI-powered plain-language explanations of the risks involved. It reads swap transaction calldata, token addresses, token symbols, token decimals, route path (multi-hop), pool addresses for each hop, router contract, aggregator contract (if used), slippage parameters, deadline, gas price, estimated output per hop, protocol fees per hop, route complexity (number of hops), intermediate tokens, liquidity depth per pool, price impact per hop, and total expected output. The tool then presents this data alongside an AI-generated analysis of the risks of the multi-hop swap, including cumulative slippage, price impact per hop, intermediate token exposure, and potential failure points — helping you decide whether to proceed or adjust your swap before signing.
HOW TO USE
Connect your wallet using the BGWallet bridge and select your target network. Enter the transaction hash of the multi-hop swap you want to analyze. Click "Analyze multi-hop risk" to read on-chain transaction data. The tool displays the transaction hash, number of hops, cumulative slippage, intermediate tokens involved, and risk level (Low/Medium/High). Detailed information includes route path, price impact per hop, liquidity depth, protocol fees, expected output, and failure points. A risk score meter visually indicates the overall risk level. An AI explanation appears below the on-chain data, analyzing the risks of the multi-hop swap including cumulative slippage, price impact per hop, intermediate token exposure, and potential failure points, and recommending whether you should proceed or adjust your swap 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 transaction data. No hardcoded contract addresses are used — you are always in control of which contract you trust. When analyzing multi-hop swap risks, the tool decodes the transaction calldata to identify the swap function and extract the route path (array of token addresses), reads token addresses and resolves them to symbols and decimals via token contract calls, reads swap amounts and slippage parameters from the calldata, reads deadline and gas price from the transaction object, estimates output per hop by simulating each hop using the router's getAmountsOut() or getAmountsIn() functions, reads protocol fees per hop from the router or pool configuration, counts the number of hops to determine route complexity, identifies intermediate tokens from the path, reads liquidity depth per pool via the pool contract's getReserves() or similar functions, calculates price impact per hop by comparing the swap amount to the pool's liquidity, and calculates total expected output by summing the outputs of each hop. 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 explain the risks of the multi-hop swap, including cumulative slippage, price impact per hop, intermediate token exposure, and potential failure points, and recommend whether to proceed or adjust — while stating plainly that it cannot predict actual swap output due to slippage and market movement between read and execution, cannot detect mempool conditions or front-running risks, cannot guarantee that the route will be optimal or that the swap will succeed, and cannot predict whether intermediate tokens will maintain their value during execution. The AI response is capped at 1,024 tokens to ensure concise, focused risk assessments. All computed values are guarded against negative numbers — if a hop count or price impact appears invalid, the tool flags it rather than displaying nonsensical values.
WHAT IT CANNOT SEE
This tool cannot predict actual swap output due to slippage and market movement between read and execution. It cannot detect mempool conditions or front-running risks. It cannot guarantee that the route will be optimal or that the swap will succeed. It cannot detect off-chain liquidity changes or price manipulation. It cannot predict whether intermediate tokens will maintain their value during the multi-hop execution. The AI explanation is generated from on-chain data only and cannot detect mempool conditions, front-running, sandwich attacks, or off-chain liquidity changes. It cannot predict whether intermediate tokens will experience price volatility during execution. The tool does not continuously monitor swap transactions; 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 execution or protection against slippage.
PLEASE NOTE
Multi-Hop Swap 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. Multi-hop swaps carry significant risk including cumulative slippage, intermediate token exposure, and potential failure points. 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.