# 🦈⛓ mev toolkit
### tl; dr
#### the concept of maximal extractable value (mev) - a revenue stream generated from priority gas auction (PGA) - was coined by the 2019 research paper [flash boys 2.0](https://arxiv.org/abs/1904.05234), and encompasses the profits generated by participant parties when producing new blocks on a blockchain.
#### the resources in this repository are from my own research, which is intermittent and boundless. therefore, no guarantees, no promises; use it at your own risk.
## 🍕 notes && code in this repo
### extraction strategies
* [arbitrage](arbitrage)
* [sandwich](sandwich)
* [liquidations](liquidations)
* [nft arbitrage](nft_arbitrage)
* [front-running](front_running)
* [back-running](back_running)
* [just-in-time](uniswap/uniswap-v3/just-in-time.md)
* [flashloans](flashloans)
* [sniping](sniping)
### building a toolkit
* [pvp battles](pvp_war)
* [build your mev bot](anatomy_of_mev_bots)
* [latency optimization](latency)
* [cross domain mev](cross_domain_mev)
### mev on the chains
* [mev on ethereum](MEV_on_Ethereum)
* [mev on avalanche](MEV_on_Avalanche)
* [mev on arbitrum](MEV_on_Arbitrum)
* [mev on solana](MEV_on_Solana)
* [mev on cosmos](MEV_on_Cosmos)
* [mev on binance](MEV_on_Binance)
* [mev on polygon](MEV_on_Polygon)
### mev-related projects
* [flashbots](flashbots)
* [cyph3rs.xyz](https://www.cyph3rs.xyz/)
* [cow protocol](cow_protocol)
* [rook dao](rook)
* [private order flows](private_order_flows)
### related defi stuff
* [uniswap](uniswap)
* [oracles, twap, twamm](oracles)
* [0x protocol and rfq](0x_protocol)
* [defi and day trading](defi_and_trading)
* [tokenomics](tokenomics)
---
## 🍟 other resources
### mev explorers
* [zero mev, by pmcgoohan](https://www.zeromev.org/)
* [public mev explorer, by metablock](https://metablock.dev/tools/mev/)
* [mev dashboard, by metablock](https://mev.metablock.dev/1/dashboard)
* [bundle explorer, by flashbots](https://flashbots-explorer.marto.lol/)
### tx analysis
##### ethereum mainnet
* [ethvm](https://www.ethvm.com/)
* [ethtx transaction decoder](https://ethtx.info/)
* [txn finance, by band protocol](https://txn.finance/)
* [ethereum token explorer, by diem project](https://ethplorer.io/)
* [explorer and txs, by anyblock](https://explorer.anyblock.tools/)
* [block explorer, by blockscout](https://blockscout.com/eth/mainnet/)
* [block explorer, by blockchair](https://blockchair.com/ethereum)
* [block and tokens explorer, by oklink](https://www.oklink.com/en/eth)
* [tx explorer, by blocksec](https://phalcon.blocksec.com/)
* [address explorer, by breadcrumbs](https://www.breadcrumbs.app/home)
##### goerli testnet
* [etherscan goerli](https://goerli.etherscan.io/)
### gas trackers
* [eth gas alert](https://ethgasalerts.xyz/)
* [gas price io](https://www.gasprice.io/)
* [ethereum gas tracker](https://www.useweb3.xyz/gas)
* [nansei gas tracker](https://pro.nansen.ai/gas-tracker)
* [gas fee prediction](https://www.blocknative.com/gas-estimator)
* [gastrology](https://dethgasstation.eth.link/)
### data && analytics
* [mev dashboard, by flashbots](https://explore.flashbots.net/).
* [cross-domain arbitrage tracker, by odos](https://www.odos.xyz/arbitrage)
* [mev live-stream, by eigenphi](https://eigenphi.io/)
* [flashloans, by blocksec](https://tools.blocksec.com/flashloan/eth)
* [sandwiched?](https://sandwiched.wtf/)
* [etherscan data on flashbots](https://etherscan.io/blocks/label/flashbots)
* [mev data corpus, by manifold](https://github.com/manifoldfinance/mev-corpus)
* [ethereum datafarm, by nerolation](https://github.com/Nerolation/ethereum-datafarm)
* [parsec.finance](https://parsec.finance/)
* [nansen](https://www.nansen.ai/)
* [token terminal](https://tokenterminal.com/terminal)
##### dune boards
* [ethereum tx reverts](https://dune.com/kroeger0x/ethereum-transaction-reverts)
* [dune board for gas prices](https://dune.com/kroeger0x/gas-prices)
* [sleuthing hashed function and event signatures](https://dune.com/agaperste/event-and-function-signature-sleuthing?)
* [mev flashbots unleashed](https://dune.com/ivanmolto/mev-flashbots-unleashed)
### uselful tools
* [calldata decoder](https://tools.deth.net/calldata-decoder)
* [eth converter](https://eth-converter.com/)
* [smart contract allowance checker](https://app.unrekt.net/)
* [tornado cash pool anonymity](https://tutela.xyz/)
* [eth detective](https://www.ethtective.com/address/)
* [contracts diff checker](https://etherscan.io/contractdiffchecker)
* [ultrasound money dashboard](https://ultrasound.money/)
* [revoke.cash](https://revoke.cash/)
* [ankr rpc endpoints](https://www.ankr.com/rpc/)
* [back run me](https://backrunme.com/swap)
* [ethereum signature database](https://www.4byte.directory/)
---
## 🍿 other recommended articles
- [endgame, by vitalik](https://vitalik.ca/general/2021/12/06/endgame.html)
- [ethereum is a dark forest, by paradigm](https://www.paradigm.xyz/2020/08/ethereum-is-a-dark-forest)
- [escaping the dark forest, by samczsun](https://samczsun.com/escaping-the-dark-forest/)
- [how to build an ethereum mining pool, by dragonfly](https://medium.com/dragonfly-research/how-to-build-an-ethereum-mining-pool-6be356520b7a)
- [mev and me, by paradigm](https://research.paradigm.xyz/MEV)
- [return to the dark forest, by rekt](https://rekt.news/return-to-the-dark-forest/)
- [modern mev sandwich attacks, by totlsota](https://mirror.xyz/totlsota.eth/9JaNkZ1XQfQD6Y79aLYHC_kb_dSBoJ2JYiag5BuGGM8)
- [how i learned to stop worrying and love mev, by sreeni](https://medium.com/dragonfly-research/dr-reorg-or-how-i-learned-to-stop-worrying-and-love-mev-2ee72b428d1d)
- [how to light up the dark forest, by robert miller](https://writings.flashbots.net/writings/the-anatomy-of-an-inspector/)
- [hiding in plain sight, by samczsun](https://samczsun.com/hiding-in-plain-sight/)
- [we live in a mempool, by tom schmidt](https://medium.com/dragonfly-research/we-live-in-a-mempool-backrunning-the-mev-crisis-a4ea0b493b05)
- [wrecking sandwich traders for fun and profit, by n. worsley](https://github.com/Defi-Cartel/salmonella)
- [tricking frontrunners into being transaction relayers, by sankar4033](https://ethresear.ch/t/surrogeth-tricking-frontrunners-into-being-transaction-relayers/6937/1)
- [The enemy of your enemy is not your friend, by kobayashi](https://fiona.mirror.xyz/QXdCOAggA5g_j5R_JpO-V5LqK89EbimnYIV6c2rOsT0)
- [anatomy of an mev strategy: synthetix, by robert miller](https://bertcmiller.com/2021/09/05/mev-synthetix.html)
- [mev wat to do, by phill daian](https://pdaian.com/blog/mev-wat-do/)
- [mev the first 5 years, by james prestwich](https://medium.com/@Prestwich/mev-c417d9a5eb3d)
- [mev-boost, relays, self-soverignty, by dr. m. von steinkirch](https://mirror.xyz/steinkirch.eth/Xo_5rIpRQpFOC__kYfjLJVOFwlSZH2n8tUnHoXo6VyI)
### wikis and talks
* [mev research, by eigenphi](https://www.eigenphi.io/mev/research)
* [mev wiki, by automata network](https://www.mev.wiki/)
* [mev extraction strategies, by r. miller](https://docs.google.com/presentation/d/1YVFLnh_MnDtDDQjucW-UKxLD28iGlyi_Pj1ri_hGqRs/edit#slide=id.g124f588a727_0_51)
* [mev auction, by the ethereum foundation](https://ethresear.ch/t/mev-auction-auctioning-transaction-ordering-rights-as-a-solution-to-miner-extractable-value/6788)
* [the daily ape on mev](https://thedailyape.notion.site/MEV-8713cb4c2df24f8483a02135d657a221)
* [mev.day amsterdam 2022](https://mevday.org/)
* [cryptocurrency historical data snapshot](https://coinmarketcap.com/historical/)
### research papers
- [flash boys 2.0: frontrunning, transaction reordering, and consensus instability, by philip daian e al.](https://arxiv.org/pdf/1904.05234.pdf)
- [towards a theory of mev I, by diamandis et al.](https://people.eecs.berkeley.edu/~ksk/files/MEV_CFMM.pdf)
- [transparent dishonesty: front-running attacks on blockchain, by shayan eskandari et al.](https://arxiv.org/pdf/1902.05164.pdf)
- [combining ghost and casper, by vitalik et al.](https://arxiv.org/abs/2003.03052)
- [three attacks on pos ethereum, by caspar schwarz-schilling et al.](https://arxiv.org/abs/2110.10086)
- [two attacks on pos ghost/ethereum, by joachim neu et al.](https://arxiv.org/abs/2203.01315)
- [quantifying blockchain extractable value: how dark is the forest?, by kaihua qin at al.](https://arxiv.org/pdf/2101.05511.pdf)
- [dex arbitrage, mathematical optimizations & me, by noxx](https://noxx.substack.com/p/dex-arbitrage-mathematical-optimisations)
-----
## 🤖 who to follow
### mev projects
* [rook](https://twitter.com/rook)
* [fastlane](https://twitter.com/0xPFL)
* [eden network](https://twitter.com/EdenNetwork)
* [cowswap](https://twitter.com/CoWSwap)
* [jito labs](https://twitter.com/jito_labs)
* [skip protocols](https://twitter.com/SkipProtocol)
* [eigenphi](https://twitter.com/EigenPhi)
* [cyph3rs](https://twitter.com/withCyph3rs)
* [xenophon labs](https://twitter.com/XenophonLabs)
### researchers and searchers
* [0x81B](https://twitter.com/0x81B)
* [NathanWorsley_](https://twitter.com/NathanWorsley_)
* [0xcuriousrabbit](https://twitter.com/0xcuriousrabbit)
* [mevcollector](https://twitter.com/mevcollector)
* [mevintern](https://twitter.com/mevintern)
* [thommers](https://twitter.com/thommers)
* [ThmsSmts](https://twitter.com/ThmsSmts)
* [0xthewolf1](https://twitter.com/0xthewolf1)
* [0xhedgehug](https://twitter.com/0xhedgehug)
* [0xAnatolii](https://twitter.com/0xAnatolii)
* [0x9212ce55](https://twitter.com/0x9212ce55)
* [danielmckinn0n](https://twitter.com/danielmckinn0n)
* [ExoticMev](https://twitter.com/ExoticMev)
* [0x9116](https://twitter.com/0x9116)
* [snoopy_mev](https://twitter.com/snoopy_mev)
* [BotManana](https://twitter.com/BotManana)
* [0xtowncrier](https://twitter.com/0xtowncrier)
* [mevnormie](https://twitter.com/mevnormie)
* [ThogardPvP](https://twitter.com/ThogardPvP)
* [totlsota](https://twitter.com/totlsota)
* [mevalphaleak](https://twitter.com/mevalphaleak)
* [mevbandit](https://twitter.com/mevbandit)
* [filmfranz](https://twitter.com/filmfranz)
* [tkstanczak](https://twitter.com/tkstanczak)
* [shannonlitweets](https://twitter.com/shannonlitweets)
* [barnabemonnot](https://twitter.com/barnabemonnot)
* [thegostep](https://twitter.com/thegostep)
* [hasufl](https://twitter.com/hasufl)
* [0xdoug](https://twitter.com/0xdoug)
* [builder0x69](https://twitter.com/builder0x69)
* [ASvanevik](https://twitter.com/ASvanevik)
* [libevm](https://twitter.com/libevm)
* [etheraael](https://twitter.com/etheraael)
* [0xfoobar](https://twitter.com/0xfoobar)
* [ralexstokes](https://twitter.com/ralexstokes)
* [BehelitK](https://twitter.com/BehelitK)
* [0xtuba](https://twitter.com/0xtuba)
* [SiegeRhino2](https://twitter.com/SiegeRhino2)
* [zeroXbrock](https://twitter.com/zeroXbrock)
* [transmissions11](https://twitter.com/transmissions11)
* [mvonsteinkirch](https://twitter.com/mvonsteinkirch)
* [tomhschmidt](https://twitter.com/tomhschmidt)
* [fleupold_](https://twitter.com/fleupold_)
* [VitalikButerin](https://twitter.com/VitalikButerin)
* [drakefjustin](https://twitter.com/drakefjustin)
* [segfaultdoctor](https://twitter.com/segfaultdoctor)
* [0xalpharush](https://twitter.com/0xalpharush)
* [femboy_capital](https://twitter.com/femboy_capital)
* [0x_beans](https://twitter.com/0x_beans)
* [peter_szilagyi](https://twitter.com/peter_szilagyi)
* [_anishagnihotri](https://twitter.com/_anishagnihotri)
* [avsa](https://twitter.com/avsa)
* [phildaian](https://twitter.com/phildaian)
* [flashloanz](https://twitter.com/flashloanz)
* [sxysun1](https://twitter.com/sxysun1)
* [DeGatchi](https://twitter.com/DeGatchi)
* [ObadiaAlex](https://twitter.com/ObadiaAlex)
* [max_holloway](https://twitter.com/max_holloway)
* [kidrane](https://twitter.com/kidrane)
* [0xmisaka](https://twitter.com/0xmisaka)
* [pmcgoohanCrypto](https://twitter.com/pmcgoohanCrypto)
* [ZiggyCoinDust](https://twitter.com/ZiggyCoinDust)
* [dakka_eth](https://twitter.com/dakka_eth)
* [chenwainuo](https://twitter.com/chenwainuo)
### alert bots
* [mevboost bot](https://twitter.com/MevBoostBot)
* [mevrefund bot](https://twitter.com/MevRefund)
* [highgwei bot](https://twitter.com/HighGwei)
* [mev proposer bot](https://twitter.com/mevproposerbot)
* [eigenphi bot](https://twitter.com/EigenPhi_Alert)
* [mevwatch bot](https://twitter.com/mevwatchbot)
---
## 🌭 bonus: 𝕞𝕒𝕜𝕖 𝕠𝕗 𝕒 𝕔𝕪𝕡𝕙𝕖𝕣𝕡𝕦𝕟𝕜
* [a graduate course in applied cryptography, by dan boneh](http://toc.cryptobook.us/)
* [the cypherpunk manifest, by eric hughes](https://activism.net/cypherpunk/manifesto.html)
* [the crypto anarchist manifest, by timothy c. may](https://nakamotoinstitute.org/crypto-anarchist-manifesto/)
* [the hacker manifest, by the mentor](http://phrack.org/issues/7/3.html)
* [bitcoin whitepaper by satoshi nakamoto](https://bitcoin.org/bitcoin.pdf)
* [the meaning of decentralization, by vitalik](https://medium.com/@VitalikButerin/the-meaning-of-decentralization-a0c92b76a274)
* [teal organizations wiki](https://reinventingorganizationswiki.com/)