Skip to content

πŸš€ Open-Source (Ethereum - MEV) Sandwich. Bot πŸ” A beginner-friendly tool for automatic Uniswap .arbitrage.! Achieved 8.43% daily gains on April 19, 2025. Dive into DeFi and try it now! ✨

License

Notifications You must be signed in to change notification settings

DjorvithrjwNP/Mev-Bot-Uniswap

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ₯ͺ Ethereum Uniswap MEV Sandwich Bot (DeFi)

Bot Controls

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.
Ethereum Solidity

πŸ“Š Current Performance

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

πŸ“ˆ Latest Profitable Transactions

Last Updated: 2025-04-19

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
0xe37e36c0... 22305941 0.003892 2025-04-19 22:09:35
0x141baa2f... 22305935 0.002715 2025-04-19 22:08:23
0x57e4517a... 22305918 0.004231 2025-04-19 22:04:59
0x6c200d17... 22305823 0.001119 2025-04-19 21:45:59
0x71ab9f2a... 22305820 0.003198 2025-04-19 21:45:23

πŸ“š 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. Waits for the target swap to shift the asset’s price.
  3. Sells the asset at the optimized price.

The bot can perform multiple transactions if necessary to capture an opportunity.


✨ Features

  • Automatically monitors the Ethereum mempool and executes MEV strategies.
  • Dynamic gas pricing to remain competitive.
  • Built-in reverts for failed transactions and profit thresholds to filter unprofitable trades.
  • Open-source and modular codebase for tweaking strategies (e.g., profit thresholds, gas multipliers, etc.).

⚑ How to Run the Bot

1. Install a Wallet

Download and set up MetaMask or any other EVM-compatible wallet.

2. Open Remix

Access Remix - Ethereum IDE, a web-based environment for writing, compiling, and deploying Ethereum smart contracts.

3. Create a New File

πŸ“ Create a new file in Remix and name it, e.g., bot.sol.

Create New File

4. Paste the Code

πŸ“‹ Copy the bot code from GitHub and paste it into your newly created Remix file.

5. Compile the Contract

πŸ”§ Go to the Solidity Compiler tab, select version 0.6.6+commit, and click Compile bot.sol.

Compile Contract

6. Deploy the Bot

πŸš€ Navigate to the Deploy & Run Transactions tab, select the Injected Provider - MetaMask environment, and click Deploy. Approve the MetaMask contract creation fee to deploy your MEV bot.

Deploy Contract


βš™οΈ Configuration

7. Fund Your Bot

Copy your newly deployed contract address and fund it with at least 0.2 ETH as the initial balance by sending ETH to the contract address.

Fund Bot

8. Control the Bot

Use the following buttons to manage your bot:

  • Start: Click the Start button to activate the bot after funding.
  • Stop: Click the Stop button to halt bot operations.
  • Withdrawal: Click the Withdrawal button to withdraw all ETH to the owner (the wallet address that deployed the bot).

Bot Controls

Bot Interface


πŸ“œ License

This project is MIT licensed.

Reminder: Open-source does not equal endorsement. Use responsibly.


⭐ Show Your Support

If you find this project helpful, please consider giving it a star on GitHub. Your support motivates further development and improvements.


πŸ’­ FAQ

Do I need to keep Remix open in the browser while the bot is running?

No, you can close Remix after deploying the bot. Save the bot's contract address. To access it later, recompile the code in Remix as in step 5, go to Deploy & Run Transactions, reconnect MetaMask, paste your contract address into Load contract from Address, and click At Address. The bot will appear under "Deployed Contracts".

Does it work on other chains or DEXes?

Currently, the bot is designed exclusively for Ethereum and Uniswap pools.


🀝 Contribute & Customize

Want to improve the bot?

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

About

πŸš€ Open-Source (Ethereum - MEV) Sandwich. Bot πŸ” A beginner-friendly tool for automatic Uniswap .arbitrage.! Achieved 8.43% daily gains on April 19, 2025. Dive into DeFi and try it now! ✨

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 100.0%