rahulkhunte/flasharb-base ? reverse-engineered prompt

Reverse engineered prompt

Build me a live flash loan arbitrage bot for Base mainnet that watches Uniswap V3 and Aerodrome and looks for price gaps across a bunch of common tokens like USDC, DEGEN, AERO, cbBTC, BRETT, VIRTUAL, and ZORA.

I want it to scan quickly in real time, use websocket block updates, and only try trades when the math says there is a real profit after fees and repayment. It should simulate the trade first so it does not send bad transactions or lose money on failed attempts.

Please include the Solidity flash loan contract and the Python scanner and executor that finds routes, checks pricing, and sends the transaction when an arbitrage is found. Keep it set up for Base, with the ability to rotate RPCs if needed, and make it easy to run from a fresh setup with a simple config file for keys and settings. If you need current contract or pool details, look them up online first.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab