https://github.com/dineshpinto/mev-bot

https://github.com/dineshpinto/mev-bot

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
    Links to: arxiv.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (4.4%) to scientific vocabulary
Last synced: 5 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: dineshpinto
  • License: apache-2.0
  • Default Branch: main
  • Size: 18.6 KB
Statistics
  • Stars: 13
  • Watchers: 3
  • Forks: 2
  • Open Issues: 0
  • Releases: 0
Created over 3 years ago · Last pushed over 3 years ago
Metadata Files
Readme License

README.md

MEV

"Ethereum is a dark forest" - Dan Robinson

What is MEV?

MEV is the quantitative value that can be extracted (primarily) from tx re-ordering, inclusion and optimization in a block before it gets added to the blockchain. The "dark forest" refers to the mempool, a place where transactions sit before being picked up by miners to be added into a block. The term itself is maximal extractable value, or sometimes (rather confusingly) miner extractable value.

Is it growing?

Based on various quantitative metrics, such as presented on the Flashbots site, the total extracted MEV currently exceeds $600M, with around $20M extracted in the last 30 days alone. A majority of this (over 99%) comes from arbitrage, and over 97% coming from just three ETH protocols (uniswap v2, uniswap v3 and balancer v1). Further, looking at the growth in MEV over time and complexity of solving the issue (solutions include random tx ordering etc.), it's clear that MEV is here to stay.

Is it only on PoW ETH?

No. Effectively, any party capable of validating transactions on a PoW/PoS chain is can extract MEV (e.g. validators on PoS ETH, rollup providers on Optimism etc.).

Important references

Theory

OG work

Paradigm Research

Basics

GitHub repos and Twitter threads

Why are we here?

We will focus primarily on atomic arbitrage, basically creating a series of on-chain interactions that sequentially execute and check if some conditions are met. If the conditions are not met, the entire transaction set is reverted, kinda like an undo button.

The atomic arbitrage space is incredibly competitive, and the probability of making a profitable trade on the larger DeFi protocols is practically 0. However, the goal here is to understand how MEV works, implement some basic strats, and eventually apply that to long-tail MEV strats that have a higher EV. For an example of a long tail strat see this Chainsight Twitter thread.

Disclaimer

This project is for educational purposes only. You should not construe any such information or other material as legal, tax, investment, financial, or other advice. Nothing contained here constitutes a solicitation, recommendation, endorsement, or offer by me or any third party service provider to buy or sell any securities or other financial instruments in this or in any other jurisdiction in which such solicitation or offer would be unlawful under the securities laws of such jurisdiction.

If you plan to use real money, use at your own risk.

Under no circumstances will I be held responsible or liable in any way for any claims, damages, losses, expenses, costs, or liabilities whatsoever, including, without limitation, any direct or indirect damages for loss of profits.

Owner

  • Name: Dinesh Pinto
  • Login: dineshpinto
  • Kind: user
  • Location: Switzerland/Germany

quantum info PhD student @ EPFL, pythonista & rustacean

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels