mirror of
https://github.com/autistic-symposium/mev-toolkit.git
synced 2025-04-25 02:09:24 -04:00
move some old resources on eip-1559 from the protocol toolkit
This commit is contained in:
parent
9677f54de9
commit
11a09ffb44
@ -1,43 +1,44 @@
|
||||
## mev and eip-1559
|
||||
|
||||
<br>
|
||||
|
||||
### tl; dr
|
||||
|
||||
<br>
|
||||
|
||||
<img width="746" alt="Screen Shot 2022-12-21 at 8 53 03 PM" src="https://user-images.githubusercontent.com/1130416/209059634-7d8384b2-4198-4406-8880-3b35a4d54d4d.png">
|
||||
- the incorporation of eip-1559 in the london hardfork brought a major restructuring of the ethereum fee mechanism, aiming to allow for easier fee estimation by users and consolidate eth as the base currency of the network by burning part of the transaction fees.
|
||||
|
||||
<br>
|
||||
|
||||
- eip-1559 changed this fee market: users now pay a fee consisting of a base fee, which is burned, and a tip, that goes to the block builder.
|
||||
- the maximum block size doubled to 30 million gas units, however, the target block size is half of that.
|
||||
- if there are few users willing to pay the base fee and the block size is below the target, the base fee decreases.
|
||||
- similarly, if the block size is above the target, the base fee increases.
|
||||
|
||||
- under the new fee mechanism, instead of choosing a gas price for their transactions, users set a "priority fee" for miners to incentivize inclusion, alongside a "max fee", stating the absolute maximum price that they are willing to pay.
|
||||
- the protocol now sets a per-block "basefee", computed programmatically from the amount of gas used in the block immediately before, in a negative feedback loop meant for block sizes to stabilize around a target size $s_0$ (initially equal to the maximum current block size).
|
||||
|
||||
- The incorporation of EIP-1559 in the London hardfork brought a major restructuring of the Ethereum fee mechanism, aiming to allow for easier
|
||||
fee estimation by users and consolidate ETH as the base currency of the network by burning part of the transaction fees.
|
||||
- valid transactions pay a gas price equal to the basefee plus the prioirity fee (only up to the max fee needed in case of sudden basefee increases).
|
||||
- the prioirity fee goes to the miner, and, crucially, the basefee is burnt.
|
||||
|
||||
- EIP-1559 changed this fee market. Users now pay a fee consisting of a base fee, which is burned, and a tip, that goes to the block builder.
|
||||
The maximum block size doubled to 30 million gas units, however, the target block size is half of that. If there are few users willing to pay the base fee and the block size is below the target, the base fee decreases. Similarly, if the block size is above the target, the base fee increases.
|
||||
- implications for mev-related infrastructure: eliminate the possibility of zero-gwei transactions, which are presently used for frontrunning protection in some DEXes, where miner fees are taken directly from the transferred tokens.
|
||||
|
||||
- In other words, under the new fee mechanism, instead of choosing a gas price for their transactions, users set a "priority fee" for miners to incentivize inclusion, alongside a "max fee", stating the absolute maximum price that they are willing to pay. The protocol now sets a per-block "basefee", computed programmatically from the amount of gas used in the block immediately before, in a negative feedback loop meant for block sizes to stabilize around a target size $s_0$ (initially equal to the maximum current block size).
|
||||
|
||||
- Valid transactions pay a gas price equal to the basefee plus the prioirity fee (only up to the max fee needed in case of sudden basefee increases). The prioirity fee goes to the miner, and, crucially, the basefee is burnt.
|
||||
|
||||
- Implications for MEV-related infrastructure: eliminate the possibility of zero-Gwei transactions, which are presently used for frontrunning
|
||||
protection in some DEXes, where miner fees are taken directly from the transferred tokens.
|
||||
|
||||
- eip1559 is kind of a perpetual second-price auction. The basefee floats to price out exactly enough users such that the remaining ones fill the block to capacity. Sometimes it increases (as in English auctions), when the demand is higher than the supply, and sometimes it decreases (as in Dutch auctions), when the demand is lower than the supply.
|
||||
- eip-1559 is kind of a perpetual second-price auction. the base fee floats to price out exactly enough users such that the remaining ones fill the block to capacity.
|
||||
- sometimes it increases (as in english auctions), when the demand is higher than the supply, and sometimes it decreases (as in dutch auctions), when the demand is lower than the supply.
|
||||
|
||||
<br>
|
||||
|
||||
<img width="612" alt="Screen Shot 2022-11-17 at 1 18 14 PM" src="https://user-images.githubusercontent.com/1130416/202561827-69afafa9-7f44-438b-babf-f823b7ac7ee1.png">
|
||||
|
||||
|
||||
<p align="center">
|
||||
<img src="https://user-images.githubusercontent.com/1130416/209059634-7d8384b2-4198-4406-8880-3b35a4d54d4d.png" width="45%">
|
||||
<img src="https://user-images.githubusercontent.com/1130416/202561827-69afafa9-7f44-438b-babf-f823b7ac7ee1.png" width="45%">
|
||||
</p>
|
||||
|
||||
<br>
|
||||
|
||||
---
|
||||
|
||||
### dune queries
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
#### eip-1559 adoption
|
||||
|
||||
```
|
||||
@ -138,13 +139,19 @@ ORDER BY block_time DESC
|
||||
LIMIT 10;
|
||||
```
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
----
|
||||
|
||||
### resources
|
||||
### cool resources
|
||||
|
||||
<br>
|
||||
|
||||
* **[eip-1559 dune board](https://dune.com/barnabe/EIP1559)**
|
||||
* **[structuring blockspace derivatives, by j. ma](https://mirror.xyz/0x03c29504CEcCa30B93FF5774183a1358D41fbeB1/WKa3GFC03uY34d2MufTyD0c595xVRUEZi9RNG-dHNKs)**
|
||||
* **[congestion control and eip1559, by barnabe.eth](https://barnabe.substack.com/p/congestion-control-and-eip1559)**
|
||||
* **[understanding fees in eip-1559, by barnabe.eth](https://barnabe.substack.com/p/understanding-fees-in-eip1559)**
|
||||
* **[agent-based simulation environment for eip-1559](https://github.com/ethereum/abm1559)**
|
||||
* **[transaction fee mechanism design for ethereum, t. tim roughgarden](https://timroughgarden.org/papers/eip1559.pdf)** (thoughts on how eip-1559 proposes a major change to ethereum's transaction fee mechanism, the market for ethereum transactions, incentive-compatible transaction fee mechanisms, and alternative designs)
|
||||
|
||||
|
||||
- [eip-1559 dune board](https://dune.com/barnabe/EIP1559)
|
||||
- [structuring blockspace derivatives by julian ma](https://mirror.xyz/0x03c29504CEcCa30B93FF5774183a1358D41fbeB1/WKa3GFC03uY34d2MufTyD0c595xVRUEZi9RNG-dHNKs)
|
||||
- [agent-based simulation environment for EIP 1559.](https://github.com/ethereum/abm1559)
|
||||
|
Loading…
x
Reference in New Issue
Block a user