mev-toolkit/README.md
2022-07-26 08:20:36 -07:00

140 lines
7.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 🧱⛓ Blockchains, DeFi, AMMs, and MEV
<br>
## ☠️ My notes and source code in this repo:
<br>
* [MEV on Ethereum](https://github.com/bt3gl-labs/Scratch-Space-Stateful-Blockchains/tree/main/MEV)
* [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)
* [`geth`: notes and code](https://github.com/bt3gl-labs/Stateful-Blockchains-and-Flashbots/tree/main/geth_and_k8s)
* [The ROOK project](https://github.com/bt3gl-labs/Scratch-Space-Stateful-Blockchains/tree/main/ROOK)
* [The 0x Protocol](https://github.com/bt3gl-labs/Scratch-Space-Stateful-Blockchains/tree/main/0x_Protocol)
* [The Uniswap project](https://github.com/bt3gl-labs/Scratch-Space-Stateful-Blockchains/tree/main/Uniswap)
* [DeFi and day trading resources](https://github.com/bt3gl-labs/Blockchains-AMMs-and-MEV/tree/main/DeFi)
* [Tokenomics for DeFi projects](https://github.com/bt3gl-labs/Blockchains-AMMs-and-MEV/tree/main/Tokenomics)
<br>
## ☠️ Articles I recommend:
<br>
- [MEV wiki](https://www.mev.wiki/)
- [Etherscan data on flashbots](https://etherscan.io/blocks/label/flashbots)
- [MEV Dashboard by Flashbots](https://explore.flashbots.net/).
- [KeeperDAO plan for MEV protection](https://blog.keeperdao.com/how-to-protect-yourself-from-mev-and-get-paid-for-it/)
- [A list of open problems in DeFi by Emperor](https://mirror.xyz/0xemperor.eth/0guEj0CYt5V8J5AKur2_UNKyOhONr1QJaG4NGDF0YoQ)
- [Sandwiched?](https://sandwiched.wtf/)
- [How to use Flashbots](https://cryptomarketpool.com/how-to-use-flashbots/)
- [Flashbots bundle explore](https://flashbots-explorer.marto.lol/)
- [Flash Boys 2.0, the original article](https://arxiv.org/pdf/1904.05234.pdf)
- [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 research](https://medium.com/dragonfly-research/how-to-build-an-ethereum-mining-pool-6be356520b7a)
- [MEV and Me by Paradigm](https://research.paradigm.xyz/MEV)
- "if block rewards are small enough compared to MEV, it can be rational for miners to destabilize consensus."
- "The rate at which MEV accumulates on a given blockchain is generally proportional to the complexity of its application-layer behavior."
- [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)
- [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)
- [How To Light Up The Dark Forest by Robert Miller](https://writings.flashbots.net/writings/the-anatomy-of-an-inspector/)
- [KeeperDAO's whitepaper](https://github.com/keeperdao/whitepaper/blob/main/whitepaper.pdf)
- [Blockchains are Cities by Haseeb Qureshi](https://medium.com/dragonfly-research/blockchains-are-cities-564327013f86)
* "Ethereum is NYC, Solana is LA"
- [Endgame by Vitalik](https://vitalik.ca/general/2021/12/06/endgame.html)
* "a chain where block production is still centralized, but block validation is trustless and highly decentralized"
- [Soulbound by Vitalik](https://vitalik.eth.limo/general/2022/01/26/soulbound.html)
* "Making more items in the crypto space soulbound can be one path toward where NFTs can represent much more of who you are and not just what you can afford."
- [Towards a Theory of Maximal Extractable Value I, Diamandis et al](https://people.eecs.berkeley.edu/~ksk/files/MEV_CFMM.pdf)
<br>
<br>
### 📊 Data and analytics
<br>
* [Nansen](https://www.nansen.ai/)
* [Dune](https://dune.com/browse/dashboards)
* [Token terminal](https://tokenterminal.com/terminal)
* [Westerngate, arbritage measured](Westerngate.xyz)
* [EigenPhi arbitrage scan](https://eigenphi.io/)
* [Parsec.finance](https://parsec.finance/)
<br>
<br>
### ✨ More resources
<br>
* [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)
* [Zero MEV](https://www.zeromev.org/)
* [Optimal sandwich](https://github.com/mevcheb/optimal-sandwich)
* [Subway](https://github.com/libevm/subway)
* [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)
* [Binance Alpha Bot](https://github.com/duckdegen/apebot)
* [MEV Boost](https://boost.flashbots.net/)
* [Public MEV explorer](https://metablock.dev/tools/mev/)
<br>
<br>
### 📙 𝕋𝕙𝕖 𝕞𝕒𝕜𝕖 𝕠𝕗 𝕒 𝕔𝕪𝕡𝕙𝕖𝕣𝕡𝕦𝕟𝕜
* [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)
* [How to be a Pirate by CGP Grey](https://www.youtube.com/watch?v=T0fAznO1wA8)
* [Bitcoin Whitepaper by Satoshi Nakamoto](https://bitcoin.org/bitcoin.pdf)
* "an electronic payment system based on cryptographic proof instead of trust..."
* [Teal organizations](https://reinventingorganizationswiki.com/)
* [The meaning of decentralization, by Vitalik](https://medium.com/@VitalikButerin/the-meaning-of-decentralization-a0c92b76a274)
<br>
<br>
## ☠️ Moar tools
* [EthTx Transaction Decoder](https://ethtx.info/)
* [Eth converter](https://eth-converter.com/)
* [JSON formatter](https://jsonformatter.curiousconcept.com/)
* [Craft requests from curl commands](https://reqbin.com/)
* [Smart contract fuzzer](https://github.com/crytic/echidna)
* [Smart contract code analyzer](https://github.com/crytic/slither)
* [Another smart contract code analyzer](https://github.com/ConsenSys/mythril)
* [Verx, smart contract verifier](http://verx.ch/)
* [Solhint, a linter for Solidity](https://github.com/protofire/solhint)
* [Solidity coverage tool](https://github.com/sc-forks/solidity-coverage)
* [Vscode plugin: Solidity visual](https://marketplace.visualstudio.com/items?itemName=tintinweb.solidity-visual-auditor)
* [Vscode plugin: Solidity support](https://marketplace.visualstudio.com/items?itemName=JuanBlanco.solidity)
* [Immunefi scrapper](https://github.com/pratraut/scrapyFi)
* [Cryptocurrency Historical Data Snapshot](https://coinmarketcap.com/historical/)
* [Contracts diff checker](https://etherscan.io/contractdiffchecker)
* [Hummingbot ecosystem for crypto trading bots](https://hummingbot.org/)
* [ETH detective](https://www.ethtective.com/address/)
* [CIA Officer's DeFi Roadmap](https://github.com/OffcierCia/DeFi-Developer-Road-Map#transaction-visualization-scoring--tracking)
* [Tornado Cash Pool Anonymity Auditor](https://tutela.xyz/)
* [Smart Contract Allowance Checker](https://app.unrekt.net/)