# 🦈⛓ 1337 mev toolkit
---
## 🍕 notes && code in this repo
### mev strategies
* [arbitrage](https://github.com/bt3gl-labs/1337_mev_toolkit/tree/main/arbitrage)
* [nft arbitrage](https://github.com/bt3gl-labs/1337_mev_toolkit/tree/main/nft_arbitrage)
* [front-running](https://github.com/bt3gl-labs/1337_mev_toolkit/tree/main/front_running)
* [back-running](https://github.com/bt3gl-labs/1337_mev_toolkit/tree/main/back_running)
* [sandwiching](https://github.com/bt3gl-labs/1337_mev_toolkit/tree/main/sandwiching)
* [liquidations](https://github.com/bt3gl-labs/1337_mev_toolkit/tree/main/liquidations)
* [flashloans](https://github.com/bt3gl-labs/1337_mev_toolkit/tree/main/flashloans)
### cute "retired" mev bots to learn from
* [cake sniper](https://github.com/Supercycled/cake_sniper)
* [ape bot](https://github.com/duckdegen/apebot)
* [flashbot's simple arb](https://github.com/flashbots/simple-arbitrage)
* [subway](https://github.com/libevm/subway)
* [bundle generator](https://github.com/Alcibiades-Capital/mev_bundle_generator)
* [optimal sandwich](https://github.com/mevcheb/optimal-sandwich)
* [AMM Arbitrageur](https://github.com/paco0x/amm-arbitrageur)
* [MEV Bot in q using kdb+](https://github.com/sambacha/q-evm)
* [liquidation Aave protocol example](https://github.com/ialberquilla/aave-liquidation)
* [liquidator-v3](https://github.com/blockworks-foundation/liquidator-v3)
* [limit sniper](https://github.com/CryptoGnome/Limit-Sniper)
* [pool-sniper](https://github.com/Anish-Agnihotri/pool-sniper)
* [globinmode longtail nft](https://github.com/Anish-Agnihotri/goblinmode)
* [binance alpha bot](https://github.com/duckdegen/apebot)
* [hummingbot ecosystem for crypto trading bots](https://hummingbot.org/)
### mev on the chains
* [MEV on ethereum](https://github.com/bt3gl-labs/1337_mev_toolkit/tree/main/MEV_on_Ethereum)
* [MEV on avalanche](https://github.com/bt3gl-labs/Scratch-Space-Stateful-Blockchains/tree/main/MEV_on_Avalanche)
* [MEV on solana](https://github.com/bt3gl-labs/Blockchains-AMMs-and-MEV/tree/main/MEV_on_Solana)
* [MEV on cosmos](https://github.com/bt3gl-labs/Blockchain-DeFi-and-MEV/tree/main/MEV_on_Cosmos)
### healthy mev extraction
* [flashbots](https://github.com/bt3gl-labs/Blockchain-DeFi-and-MEV/tree/main/flashbots)
* [cowswap](https://github.com/bt3gl-labs/1337_mev_toolkit/tree/main/cowswap)
* [rook](https://github.com/bt3gl-labs/1337_mev_toolkit/tree/main/rook)
* [twamm designs](https://github.com/bt3gl-labs/1337_mev_toolkit/tree/main/twamm)
* [0x protocol and rfq](https://github.com/bt3gl-labs/1337_mev_toolkit/tree/main/0x_protocol)
### building your toolkit
* [anatomy of mev bots](https://github.com/bt3gl-labs/1337_mev_toolkit/tree/main/anatomy_of_mev_bots)
* [nodes on ethereum](https://github.com/bt3gl-labs/1337_mev_toolkit/tree/main/NODES_on_Ethereum)
### related defi stuff
* [uniswap](https://github.com/bt3gl-labs/Scratch-Space-Stateful-Blockchains/tree/main/uniswap)
* [defi and day trading](https://github.com/bt3gl-labs/Blockchains-AMMs-and-MEV/tree/main/defi_and_trading)
* [tokenomics](https://github.com/bt3gl-labs/1337_mev_toolkit/tree/main/tokenomics)
---
## 🍟 resources && tools
### mev explorer
* [Zero MEV](https://www.zeromev.org/)
* [Public MEV explorer](https://metablock.dev/tools/mev/)
* [mev dashboard by metablock](https://mev.metablock.dev/1/dashboard)
### tx analysis
##### ethereum mainnet
* [ethvm](https://www.ethvm.com/)
* [ethtx transaction decoder](https://ethtx.info/)
* [txn finance](https://txn.finance/)
* [ethereum token explorer](https://ethplorer.io/)
* [anyblock explorer and txs](https://explorer.anyblock.tools/)
* [blockscout block explorer](https://blockscout.com/eth/mainnet/)
* [blockchair blocks explorer](https://blockchair.com/ethereum)
* [oklink block and tokens explorer](https://www.oklink.com/en/eth)
* [phalcon tx explorer](https://phalcon.blocksec.com/)
##### goerli testnet
* [etherscan goerli](https://goerli.etherscan.io/)
##### address analysis
* [breadcrumbs](https://www.breadcrumbs.app/home)
### 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: estimate gas prices by analyzing past blocks](https://dethgasstation.eth.link/)
### data && analytics
* [MEV Dashboard by Flashbots](https://explore.flashbots.net/).
* [Nansen](https://www.nansen.ai/)
* [Token terminal](https://tokenterminal.com/terminal)
* [Westerngate, arbritage measured](Westerngate.xyz)
* [EigenPhi arbitrage scan](https://eigenphi.io/)
* [Parsec.finance](https://parsec.finance/)
* [Flashloans](https://tools.blocksec.com/flashloan/eth)
* [Sandwiched?](https://sandwiched.wtf/)
* [Etherscan data on flashbots](https://etherscan.io/blocks/label/flashbots)
##### awesome 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 on ethereum](https://dune.com/agaperste/event-and-function-signature-sleuthing?)
### other supporting tools
* [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 dahsboard](https://ultrasound.money/)
* [revoke.cash](https://revoke.cash/)
* [ankr rpc endpoints](https://www.ankr.com/rpc/)
* [back run me](https://backrunme.com/swap)
---
## 🍿 must read articles
- [Endgame by Vitalik](https://vitalik.ca/general/2021/12/06/endgame.html)
- [Escaping the Dark Forest by samczsun](https://samczsun.com/escaping-the-dark-forest/)
- [How to Build an Ethereum Mining Pool by Dragonfly research](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 on Ethereum routers by totlsota](https://mirror.xyz/totlsota.eth/9JaNkZ1XQfQD6Y79aLYHC_kb_dSBoJ2JYiag5BuGGM8)
- [Dr. Reorg or: How I Learned to Stop Worrying and Love MEV by Saneel 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: Backrunning the MEV Crisis 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](https://github.com/Defi-Cartel/salmonella)
- [Surrogeth: Tricking frontrunners into being transaction relayers](https://ethresear.ch/t/surrogeth-tricking-frontrunners-into-being-transaction-relayers/6937/1)
- [KeeperDAO plan for MEV protection](https://blog.keeperdao.com/how-to-protect-yourself-from-mev-and-get-paid-for-it/)
- [The enemy of your enemy is not your friend](https://fiona.mirror.xyz/QXdCOAggA5g_j5R_JpO-V5LqK89EbimnYIV6c2rOsT0)
- [How to use Flashbots](https://cryptomarketpool.com/how-to-use-flashbots/)
- [Flashbots bundler explore](https://flashbots-explorer.marto.lol/)
- [Ethereum is a Dark Forest by Paradigm](https://www.paradigm.xyz/2020/08/ethereum-is-a-dark-forest)
---
## 🍌 mev research resources
* [MEV.day 2022](https://mevday.org/)
* [MEV data corpus](https://github.com/manifoldfinance/mev-corpus)
* [the Daily Ape on MEV](https://thedailyape.notion.site/MEV-8713cb4c2df24f8483a02135d657a221)
* [cryptocurrency Historical Data Snapshot](https://coinmarketcap.com/historical/)
* [cross-domain mev](https://arxiv.org/abs/2112.01472)
* [MEV wiki](https://www.mev.wiki/)
#### papers
- [Flash Boys 2.0, the original article](https://arxiv.org/pdf/1904.05234.pdf)
- [Towards a Theory of Maximal Extractable Value I, Diamandis et al](https://people.eecs.berkeley.edu/~ksk/files/MEV_CFMM.pdf)
- [SoK: Transparent Dishonesty: Front-running Attacks on Blockchain](https://arxiv.org/pdf/1902.05164.pdf)
- [KeeperDAO's whitepaper](https://github.com/keeperdao/whitepaper/blob/main/whitepaper.pdf)
- [DEX Arbitrage, Mathematical Optimisations & Me](https://noxx.substack.com/p/dex-arbitrage-mathematical-optimisations)
- [A list of open problems in DeFi by Emperor](https://mirror.xyz/0xemperor.eth/0guEj0CYt5V8J5AKur2_UNKyOhONr1QJaG4NGDF0YoQ)
- [Combining GHOST and Casper](https://arxiv.org/abs/2003.03052)
- [Three Attacks on Proof-of-Stake Ethereum](https://arxiv.org/abs/2110.10086)
- [Two Attacks On Proof-of-Stake GHOST/Ethereum](https://arxiv.org/abs/2203.01315)
---
## 🌭 bonus: 𝕋𝕙𝕖 𝕞𝕒𝕜𝕖 𝕠𝕗 𝕒 𝕔𝕪𝕡𝕙𝕖𝕣𝕡𝕦𝕟𝕜
* [A Graduate Course in Applied Cryptography](http://toc.cryptobook.us/)
* [The Cypherpunk Manifest by Eric Hughes](https://activism.net/cypherpunk/manifesto.html)
* [The Hacker Manifest by The Mentor](http://phrack.org/issues/7/3.html)
* [Bitcoin Whitepaper by Satoshi Nakamoto](https://bitcoin.org/bitcoin.pdf)
* [Teal organizations](https://reinventingorganizationswiki.com/)
* [The meaning of decentralization, by Vitalik](https://medium.com/@VitalikButerin/the-meaning-of-decentralization-a0c92b76a274)