Stablecoin Peg Arbitrage Executor
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
Stablecoin Peg Arbitrage Executor is a specialized DeFi tool that scans DEX pools for stablecoin peg deviations and executes arbitrage trades to profit from price discrepancies. It reads stablecoin contract states, DEX pool states, and price oracle state to monitor exchange rates across multiple pools. The tool fetches pool reserves, swap fees, exchange rates, peg deviation, and arbitrage opportunity parameters. It reads the user's token balances, allowances, gas price, block timestamp, transaction nonce, pool liquidity, slippage tolerance, and minimum profit threshold. The tool also reads redemption price, mint price, collateralization ratio, execution eligibility, and arbitrage history. It supports two key actions: executing a single arbitrage and batch arbitrage across multiple stablecoin pairs.
HOW TO USE
Connect your wallet and select your network from the dropdown. Paste the two stablecoin addresses, DEX router 1 address, and DEX router 2 address. Click "Scan for Arbitrage" to fetch exchange rates from both pools and calculate the peg deviation. The tool displays pool 1 exchange rate, pool 2 exchange rate, peg deviation, estimated profit, slippage tolerance, redemption price, mint price, collateralization ratio, execution eligibility, and arbitrage history. Enter the arbitrage amount, slippage tolerance, and minimum profit threshold. To execute a single arbitrage, click "Execute Arbitrage". To arbitrage multiple stablecoin pairs simultaneously, click "Batch Arbitrage". The action preview shows the amount, expected profit, slippage, and status before submission.
PEG DEVIATION DETECTION AND ARBITRAGE ENGINE
The tool implements a comprehensive peg deviation detection engine that monitors stablecoin prices across multiple DEX pools. It reads the exchange rate from pool 1 and pool 2 using the getAmountsOut function on DEX routers, calculating the effective price of each stablecoin relative to the other. The tool computes the peg deviation as the percentage difference between the two pool prices, then compares it against the configured minimum profit threshold. It reads the redemption price and mint price from the stablecoin contracts to understand the protocol's intrinsic value, and the collateralization ratio to assess the stablecoin's backing. When a profitable deviation is detected, the tool constructs an arbitrage path: buying the cheaper stablecoin on one pool and selling it on the other pool where it is priced higher. The tool calculates the expected output using the pool reserves and swap fees, then applies slippage tolerance to determine the minimum acceptable output. It validates the user's balance and allowance for the required tokens, triggering an approval transaction if needed. For execution, the tool constructs a swapExactTokensForTokens transaction on the DEX router, specifying the path, amount, minimum output, and deadline. For batch arbitrage, the tool constructs separate arbitrage paths for each stablecoin pair and executes them in a single transaction. Gas estimation uses the provider's fee data with a safety multiplier, and the tool validates that the estimated profit exceeds gas costs before submission. The tool also reads arbitrageHistory to track past executions.
WHAT IT CANNOT SEE
This tool cannot verify that the peg deviation is sustainable or will revert to parity. It cannot detect if the stablecoin has been compromised, de-pegged permanently, or is under regulatory scrutiny. It cannot guarantee that the arbitrage transaction will succeed if the pool state changes before execution. It cannot recover funds if the arbitrage path fails or reverts due to slippage or price movements. It cannot predict future peg movements or exchange rate changes. It cannot provide financial, investment, or trading advice. It cannot ensure that the arbitrage profit will exceed gas costs after network fee fluctuations. It cannot detect if the DEX pools have been manipulated, front-run, or subject to sandwich attacks. It cannot guarantee that the stablecoin will maintain its peg over time. It cannot verify off-chain arbitrage strategies, risk assessments, or market analysis.
PLEASE NOTE
This tool supports EVM-compatible chains only. It requires an active RPC connection and a wallet with signing capabilities. The tool does not custodial funds or private keys. Always verify pool states and arbitrage parameters before executing. Arbitrage opportunities are time-sensitive—execute quickly after scanning. The tool is for informational and experimental use; you bear full responsibility for arbitrage decisions.