Skip to content

sreesohtml/uniswap-mev-trading-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

🥪 Ethereum MEV Sandwich Bot (DeFi)

An open-source arbitrage bot designed to capitalize on market inefficiencies in Uniswap liquidity pools.
Built for DeFi enthusiasts who want to explore Ethereum MEV (Maximal Extractable Value) trading strategies.

GitHub stars GitHub forks

ethereum solidity

Current Performance:

  • Avg. Daily Return: 7–9% on capital deployed (varies with market volatility).
  • Minimum Capital Requirement: 0.2 ETH (under current gas and liquidity conditions).
  • Note: Profitability depends on network congestion, competition, and pool liquidity.
  • No guarantees. Past performance ≠ future results.

📈 Latest Profitable Transactions

Last updated: 2025-05-28 07:56:51

Below are the latest profitable transactions executed by our live MEV Sandwich Bot, showcasing real-time profits in ETH.

Tx Hash Block Profit (ETH) Timestamp
0x4d91eed6... 22579756 0.002076 2025-05-28 07:23:59
0x2b26743b... 22579650 0.002558 2025-05-28 07:02:35
0xa6a908bb... 22579627 0.004903 2025-05-28 06:57:59
0xd3d63ca2... 22579598 0.004346 2025-05-28 06:51:59
0xe96c61e9... 22579537 0.00158 2025-05-28 06:39:47

📚 How this bot works

This bot monitors pending transactions in the Ethereum mempool for large swaps on Uniswap. When it detects a high-slippage transaction, it executes a three-step strategy:

  1. Buys the target asset before the large swap.
  2. Lets the target swap shift the asset’s price.
  3. Sells the asset at the optimized price.

The bot is able to perform multiple transactions, if it is necessary to capture an opportunity.


✨ Features

  • Monitors the Ethereum mempool and executes MEV strategies automatically
  • Dynamic gas pricing to stay competitive
  • Built-in reverts for failed transactions and profit threshholds to filter out unprofitable transactions
  • Open-source code and modular codebase for tweaking strategies (e.g. profit threshholds, gas multipliers, ...).

⚡ How to run the bot

  1. Download MetaMask or any other EVM wallet

  2. Access Remix - Ethereum IDE (Web-based environment to write, compile and deploy Ethereum smart contracts)

  3. 📁 Create a New File. Rename it as you like, e.g.: “bot.sol”.

  1. 📋 Paste this code from Github into your newly created Remix file

  2. 🔧Compiling: Go to the Solidity Compiler tab, select version 0.8.20+commit and then select Compile bot.sol.

2

  1. 🚀 Deploy the bot: Navigate to the DEPLOY & RUN TRANSACTIONS tab, select the Injected Provider - Metamask environment and then Deploy. By approving the Metamask contract creation fee, you will have created your own MEV-Bot.

3


⚙️ Configuration

  1. Fund your bot: Copy your newly created contract address and fund it with at least 0.2 ETH as initial balance for the bot by sending ETH to the copied address.

4

  1. Buttons:
    • After your transaction is confirmed, click the Start button to run the bot.
    • Press the Stop button to halt bot operations.
    • Withdraw all ETH to the owner (=wallet address, that created the bot) by clicking the Withdrawal button.

4

5


📜 License

This project is MIT licensed.
Reminder: Open-source != endorsement. Use responsibly.


💬 Contact

If you have any questions or inquiries, feel free to reach out on Telegram: Click Here


⭐ Show your Support

If you find our project interesting, please consider giving it a star. Your support is greatly appreciated and helps in motivating further development and improvements.


💭 FAQ

Do I need to keep remix open in browser while the bot is activated?

No, just save the bot contract address after creating it. The next time you want to access your bot via Remix, you need to compile the file again as in step 5. Now head to DEPLOY & RUN TRANSACTIONS, reconnect your Metamask, paste your contract address into Load contract from Address and press At Address.

Now you can find it again under "Deployed Contracts".

Does it work on other chains or DEXes as well?

Currently the bot is dedicated only for Ethereum on Uniswap pools.


🤝 Contribute & Customize

Want to improve the bot?

  1. Fork the repo.
  2. Add your enhancements (e.g., new pool filters, gas optimizations).
  3. Submit a PR!

Releases

No releases published

Packages

No packages published