Depeg Swap Purchase Tool
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
This tool evaluates swap opportunities with integrated depeg detection for DeFi traders. Given a swap router address, token in and token out addresses, and an amount, it reads the current swap output using the router's getAmountOut or getAmountsOut functions, displays the estimated output amount, and calculates the minimum amount out based on user-defined slippage tolerance. It also reads the user's token balances and allowance for the router, providing a complete picture of swap readiness. When an oracle address is provided, the tool fetches the latest price feed and determines depeg status by comparing the oracle price against the expected peg (default 1.0 for stablecoins). The tool then displays a clear depeg indicator—Critical depeg (deviation > 3%), Warning (deviation > 1%), or Stable—along with swap advice such as "Depeg detected — potential arbitrage opportunity" or "Peg stable — normal swap conditions." All data is pulled directly from the blockchain and oracle in real time, providing a transparent, informed view before executing any swap.
HOW TO USE
Connect your wallet using the Connect button in the header. Select the target network from the dropdown—Ethereum Mainnet, Polygon, Optimism, Arbitrum One, Base, or Sepolia testnet. Enter the swap router address (e.g., Uniswap or SushiSwap router), the token in address, and the token out address. Enter the amount to swap in human-readable format and set your slippage tolerance percentage (default 0.5%). Optionally, provide an oracle or price feed address for depeg detection—this can be a Chainlink price feed or any contract implementing latestAnswer or latestRoundData. Click "Check swap & depeg status." The tool will fetch the estimated output amount, calculate min amount out with slippage, read your token balances and allowance, and check the oracle for depeg status if provided. Results appear in the card below with a large estimated output, depeg status indicator, swap advice badge, and detailed breakdown of all parameters with block explorer links. Use this information to decide whether to proceed with the swap.
ORACLE-BASED DEPEG DETECTION WITH PRICE DEVIATION ANALYSIS
The tool integrates with oracle price feeds to detect depeg events that may create arbitrage opportunities or signal risk. When an oracle address is provided, the tool calls either latestRoundData() or latestAnswer() to fetch the current price. It then compares this price against the expected peg—typically 1.0 for stablecoins like USDC, USDT, or DAI. The deviation percentage is calculated as |oraclePrice - expectedPeg| / expectedPeg. If deviation exceeds 3%, the tool flags a Critical depeg with a red indicator and suggests a potential arbitrage opportunity. If deviation exceeds 1% but is below 3%, it displays a Warning with a yellow indicator advising caution. If deviation is below 1%, it shows a Stable peg with a green indicator. The tool also displays the raw oracle price for transparency. For non-stablecoin pairs, the expected peg can be adjusted conceptually—the tool uses 1.0 as the baseline but displays the actual oracle price for user interpretation. Swap output is calculated using the router's view functions, and slippage is applied to determine the minimum acceptable output, helping users set appropriate protection levels.
WHAT IT CANNOT SEE
This tool cannot predict future depeg events or guarantee that current prices will remain stable during transaction execution. It cannot guarantee swap execution at the quoted prices—on-chain conditions may change between the quote and the transaction. It cannot ensure sufficient liquidity depth to execute the swap at the quoted price, especially for large amounts. It cannot detect oracle manipulation or price feed attacks that may affect the depeg indicator. It cannot prevent slippage beyond user-defined limits—the tool calculates the minimum amount out but cannot enforce it; users must set their transaction parameters accordingly. It cannot verify the accuracy of external price feeds or detect stale oracle data. It cannot assure that the swap contract is free from vulnerabilities, bugs, or malicious code. It cannot verify that the token addresses correspond to legitimate tokens or that the router is the intended one. It cannot provide financial advice or guarantee that a swap is profitable. All data is provided as-is for informational purposes only; any reliance on the tool's output for trading decisions is the sole responsibility of the user.
PLEASE NOTE
This tool supports EVM-compatible chains only: Ethereum Mainnet (1), Polygon (137), Optimism (10), Arbitrum One (42161), Base (8453), and Sepolia testnet (11155111). Solana, Tron, Starknet, SUI, TON, Aptos, Bitcoin, Cosmos, and XRP are not supported. The tool requires a Web3 provider (MetaMask or WalletConnect) and access to an RPC endpoint for the selected chain. It does not store any wallet data, token addresses, or swap records. All queries are performed directly against the blockchain in real time. The tool does not execute swaps—it only provides read-only information. Depeg detection is a heuristic based on oracle price feeds and does not guarantee that a depeg has occurred or that an arbitrage opportunity exists. Always verify critical data independently through a block explorer and consult with financial advisors before making any trading decisions.