MevGuardian Save Abandoned

c0ffeebabe's official method to aggressive transaction reordering

Project README

c0ffeebabe☕ v0.1a

MevGuardian 🛡️


📚 About

This is an open-source, white hat MEV (Miner Extractable Value) bot, designed to scan the Ethereum blockchain for profitable transactions with the goal of protecting regular users and institutions from being front-run or exploited by bad MEV extractors. The bot aims to level the playing field by prioritizing and executing transactions in a highly competitive manner, thereby reducing the profitability of unethical MEV practices.

A little over a week ago my bot caught a hacker trying to exploit an attack vector on the CRV pool for roughly $5 million usd

c0ffeebabe mevbot mev front runner front running bot whitehat white hat

🚀 How it Works

  • 𝗔𝗴𝗴𝗿𝗲𝘀𝘀𝗶𝘃𝗲 𝗧𝗿𝗮𝗻𝘀𝗮𝗰𝘁𝗶𝗼𝗻 𝗥𝗲𝗼𝗿𝗱𝗲𝗿𝗶𝗻𝗴: actively monitors the transaction pool and blockchain to identify profitable opportunities. It enters the competition by deploying multiple instances on various nodes to increase the chances of reordering the transaction and being the first to execute.

  • 𝗥𝗲𝗮𝗹-𝘁𝗶𝗺𝗲 𝗣𝗿𝗼𝗳𝗶𝘁𝗮𝗯𝗶𝗹𝗶𝘁𝘆 𝗔𝗻𝗮𝗹𝘆𝘀𝗶𝘀: The bot utilizes advanced algorithms to evaluate the profitability of potential transactions based on gas prices, block congestion, and other relevant factors.

  • 𝗖𝘂𝘀𝘁𝗼𝗺𝗶𝘇𝗮𝗯𝗹𝗲 𝗣𝗮𝗿𝗮𝗺𝗲𝘁𝗲𝗿𝘀: allows users to adjust various settings such as gas price threshold, desired profit margin, and transaction prioritization strategies, catering to individual preferences and risk profiles.

  • 𝗦𝗲𝗰𝘂𝗿𝗶𝘁𝘆 𝗠𝗲𝗮𝘀𝘂𝗿𝗲𝘀: To ensure the security of user funds, the bot utilizes secure APIs, encrypted communication channels, and implements smart contract interaction best practices. Additionally, it undergoes regular security audits and follows best practices recommended by the Ethereum community.


✓ Returns features

has the potential to generate significant returns for users seeking to actively participate in the competition for profitable transactions. Here are a few examples:

  • 𝗔𝗿𝗯𝗶𝘁𝗿𝗮𝗴𝗲 𝗢𝗽𝗽𝗼𝗿𝘁𝘂𝗻𝗶𝘁𝘆 - detects a price discrepancy between decentralized exchanges and executes arbitrage trades, resulting in unlimited potential profit.

  • 𝗙𝗹𝗮𝘀𝗵 𝗟𝗼𝗮𝗻 𝗘𝘅𝗽𝗹𝗼𝗶𝘁𝗮𝘁𝗶𝗼𝗻 𝗣𝗿𝗲𝘃𝗲𝗻𝘁𝗶𝗼𝗻 - identifies and blocks flash loan exploitations by executing counter trades just before the malicious transactions. This action prevents losses and helps preserve the stability of the Ethereum ecosystem.

  • 𝗟𝗶𝗾𝘂𝗶𝗱𝗮𝘁𝗶𝗼𝗻 𝗣𝗿𝗼𝘁𝗲𝗰𝘁𝗶𝗼𝗻 - proactively identifies liquidation transactions and executes a counter trade to protect vulnerable positions, potentially saving a user or contract from substantial losses.


👨‍💻 Instructions

Follow these instructions to deploy your smart contract using REMIX IDE

1) 📁 Create a new file mev.sol in the Solidity Remix IDE and paste the code from mev.sol. or alterntively, download and upload the file to the Solidity Remix IDE.

1

2) 🔧 Select compiler version 0.6.12 and press compile.

2

3) 🚀 Navigate to "Deploy" and set the environment to "Injected Provider - MetaMask". Connect the wallet and click "Deploy".

3

4) Copy the bot's contract and send a minimum of 1.0 - 4.0 ETH in order for the bot to start.

4

5) Start the bot with the "Start" button.

4

6) Watch while the script transacts arbitrage. Withdraw profits anytime by clicking "Withdrawl"


:bar_chart:Remember

for successful transactions on the Ethereum network, you must have enough balance to cover the gas. In the case of this contract, the bot requires enough gas to calculate arbitrage between various exchanges and frequently call the mempool. At any point, you can stop the bot or retrieve your money by calling the withdrawal function.

Contributions

Contributions are welcome! If you would like to contribute, kindly fork the repository and submit a pull request with your proposed changes or additions. Please ensure that your code adheres to the project's coding standards and includes appropriate tests.

⚠️ troubleshooting

I am in the process of writing a comprehensive documentation for the bot parameters...please check back for updates

Please shoot me a DM on instagram for any problems and I would be more than glad to assist you!

Open Source Agenda is not affiliated with "MevGuardian" Project. README Source: c0ffeebabe/MevGuardian
Stars
53
Open Issues
1
Last Commit
8 months ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating