lorvent / Jared-style-mev-bot

Make money with Jared style ethereum MEV bot.

Home Page:https://twitter.com/3orovik

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Jared Style MevBot

Development is under MIT License


Make money with MEV-bot (GPT-4 source code), using jaredfromsubway.eth MEV style

(!! Not exactly the same as we don't have access to jared's source code !! But using the same approach)

Release notes


Update 30.04.2023

The contract is now optimized: The "start" and "withdraw" functions require less gas (expecially for Ethereum blockchain as gas cost is high).

Please read


  • The code was never meant to be shown to anybody. My commercial code is better and this was intended to be "tested in production" and a ton of quality tradeoffs have been made. Never ever did I plan to release this publicly, lest I "leak my alpha". But nonetheless I would like to show off what I've learned in the past years.

  • Bot sends the Transaction and sniffs the Uniswap v2 Mempool

  • Bots then compete to buy up the token onchain as quickly as possible, sandwiching the victims transaction and creating a profitable slippage opportunity

  • Sending back the ETH to the contract ready for withdrawal.

  • This bot performs all of that, faster than 99% of other bots.

But ser, there are open source bots that do the same ?!?

  • Yes, there indeed are. But I still outperform them (for the time - MEV evolve quickly). Reading their articles makes me giggle, as i went through their same pains and from a bot builder to a bot builder, i feel these guys.

Wen increase aggressiveness ?

  • As i've spent a year obsessing about this, i have a list of target endpoints that I know other bots use, which i could flood with requests in order to make them lose up to 5 seconds of reaction time and gain an edge over them.

What did I learn?

  • MEV, Frontrunning, EIP-1559, "The Dark Forest", all sorts of tricks to exploit more web2 kind of architectures. And all sorts of ins and outs aboout Unsiwap

So why stop?

  • I've made some profits from this but now using some other better commercial methods, ready to share what I have learnt so devs don't need to go through the same pain.

This said, at the end I kept getting outcompeted by this individual:

https://etherscan.io/address/0x55659ddee6cb013c35301f6f3cc8482de857ea8e

If this is you, I'd like to congratulate you on your badassery. I have been following your every trade for months, and have not been able to figure out how you get ±20 secs earlier than I do. What a fucking chad.

But I will give you some competition now ;)

MEV bot Instructions


Exemple are based on Ethereum mainnet but will work in every EVM compatible chain (ETH, BSC, Polygon, ZKSync, ...)

How it works:

create-a-frontrunner-bot-on-uniswap

You can see an example of how the bot works. 0

The bot will make transactions on your entire balance to increase profit exemple 4 exemple5

Use your preferred IDE

I would recommend using Remix IDE as it is ready tu use and well tested by dev community

Access the Remix IDE here: https://remix.ethereum.org/

How to

  • Create new file "MevBot.sol" & paste code in Remix IDE

1

  • Use Solidity complier 0.6.6:

The compiler version will update automagically when you compile your source code

  • Press Compile MevBot.sol

2

Select ETH, BSC, or other EVM compatible network where you want to deploy

Add router address

I prodived Router address for ETH & BSC only, if you want to deploy in another network -> please get the correct router address from the implementation you want to use (Uniswap router address on other network, SyncSwap, ...)

  • Press Transact (Deploy)

3

  • Deposit fund to your freshly deployed MEV contract bot

Copy the contract address of your MevBot and send some ETH to the bot contract (or BNB depends on the network you used - this is mandatory for the contract to pay gas fees).

And start it with the start button

4

4 1

5

Wait a couple of minutes/hours for a profit (depends on the network activity). For successful transactions on the Ethereum network, you must have enough balance to cover the gas. Recommended 0.2-1.

At any time you can Stop bot or get back your profits by calling the stop / withdrawal function.

About

Make money with Jared style ethereum MEV bot.

https://twitter.com/3orovik

License:MIT License


Languages

Language:Solidity 100.0%