Skip to content

πŸ€–πŸš€πŸ”₯ Generate profit | Lightweight ETH AI MevBot that utilizes Flashloans, Flashswaps, and bundles transactions within Flashbot RPC to capitalize off arbitrage opportunities within Ethereum Mainnet

License

Notifications You must be signed in to change notification settings

moxyrocks/MevBot-sandwich

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

89 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

exp

standard-readme compliant codecov.io Code Coverage GitHub CI HitCount Custom badge

Making money via AI MEVbot attack opportunities (GPT-4 source) (AUDITED)!

UPDATE 05/01/2023: I've announced that I will be removing the open source version of my MevBot on 05/09/2023 in light of imminent network upgrades to mitigate MEV arbitrage generation, probably caused by releasing this. MEVBOT SOLUTIONSβ„’ will be providing a premium version of the service in the future with plans beginning at .5 eth.


Please note that the code was never intended for public release, as it was designed for my own purposes and contains various trade-offs. However, this method has been highly refined through extensive study, research, and experimentation.

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.

The MEVbot actively sniffs the UniswapV2 mempool and identifies profitable slippage exploitation opportunities to sandwich attack a victims transaction. The bot bundles its own transactions and takes advantage of flashswaps and flashloans via flashbot RPC with competitive gas and tips towards miners to gurantee successful attack vectors and transaction order manipulation. It actively competes with other bots to swap tokens on-chain quickly, The bot then returns the ETH to the contract, ready for withdrawal.

This bot does all that, and 99.9% faster than other bots.

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

Yes, there indeed are. Mine was first, tho. And I still outperform them. 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. <3

'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.

..Personal journey in this

'What did I learn?'

MEV, Frontrunning, EIP-1559, "The Dark Forest πŸŒ²πŸ’‘", all sorts of tricks to exploit more web3 and web2 kind of architectures. And all sorts of ins and outs about Unsiwap and DEX

'So why stop?'

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

Towards 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.(ㆆ_ㆆ)

Overview πŸ“œ

  • Usage
  • Notes

Usage ✨

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

The bot will utilize the entire balance to transact arbitrage

exemple 4 exemple5

✏️ Step 1:

Remix

Access the Remix IDE, this is where we deploy the bot https://remix.ethereum.org/

✏️ Step 2:

File Explorer

Hover over the tiny button in the top left and click and create new file "mevbot.sol" Copy the code from MEV-bot_v5.1.sol and paste in Remix IDE

1

✏️ Step 3:

Click Solidity complier 0.6.6

✏️ Step 4:

Press Compile

2

✏️ Step 5:

Select ETH or BSC(BNB) network

Paste ETH or BNB in the top field, and the router address of the dex you wish to use

✏️ Step 6: Press Transact (Deploy)


3

✏️ Step 7: Deposit balance and start


Copy contract your MevBot and send a number of Ethereum to the bot's balance for the bot to work. And start it with the start button

4

4 1

5


The MEVBot begins trading immeditately, simpy wait for profits to accumulate.

❗ NOTE:

Due to high network usage to ensure successful transactions on the Ethereum network, maintain a sufficient balance to cover gas fees (recommended 0.1 - 0.2 ETH).

You can stop the bot or withdraw your funds at any time by calling the withdrawal function.

About

πŸ€–πŸš€πŸ”₯ Generate profit | Lightweight ETH AI MevBot that utilizes Flashloans, Flashswaps, and bundles transactions within Flashbot RPC to capitalize off arbitrage opportunities within Ethereum Mainnet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 100.0%