👾 notes and resources on blockchain's maximal extractable value: on the hope of non-predatory free markets in the metaweb
Find a file
2022-02-28 14:29:22 +00:00
geth_and_k8s add scripts, genesis file, k8s deployment scaffold 2022-02-25 16:12:13 +00:00
chapter_I.md add some work deploying a private ethereum network with geth in k8s 2022-02-25 16:12:52 +01:00
chapter_II.md add some work deploying a private ethereum network with geth in k8s 2022-02-25 16:12:52 +01:00
chapter_III.md add some work deploying a private ethereum network with geth in k8s 2022-02-25 16:12:52 +01:00
chapter_IV.md add some work deploying a private ethereum network with geth in k8s 2022-02-25 16:12:52 +01:00
README.md Update README.md 2022-02-28 14:29:22 +00:00

🤖🧱⛓ [scratch space] Stateful Blockchains, MEV, and Flashbots


Some nice defs


"Maximal (formerly "miner" in the context of Proof of Work) extractable value (MEV) refers to the maximum value that can be extracted from block production in excess of the standard block reward and gas fees by censoring and/or changing the order of transactions in a block." - MEV Wiki




My notes





My code





Further resources





Some terminology


  • Mempool: the set of pending, unconfirmed transactions in the EVM... when someone sends a transaction in the blockchain, there is a delay between the time when the transaction is broadcasted to the network and when it is actually mined into a block. During this period, transactions sit in a pending transaction pool, the mempool, where contents are visible to everyone.
  • Frontrunning: also known as Priority Gas Auctions (PGAs), when a miner steals a profitable opportunity (such as arbitrage) for themselves by sending the same transaction with a higher gas price. For example, a transaction A is broadcasted with a higher gas price than an already pending transaction B so that A gets mined before B (eg. to snatch a Uniswap price arbitrage trade to rebalance a pool).
  • Backrunning: a transaction A is broadcasted with a slightly lower gas price than already pending transaction B so that A gets mined right after B in the same block. (eg. to execute a DyDx liquidation after a price oracle update that triggers a DyDx loan to go under the required collateralization ratio).
  • Sandwiching: profiting off slippage in liquidity pools by buying and selling before and after large transactions posted in the mempool.
  • DEX arbitrage: If two DEXes are offering a token at two different prices, one can buy the token on the lower-priced DEX and sell it on the higher-priced DEX.
  • Liquidations: if the value of a borrowed asset exceeds the collateral, anyone can liquidate the collateral and collect the liquidation fee for themselves.