The Enigma
One interesting curiosity I've noticed is that Ethereum gas prices have been falling 20-40% each quarter since EIP-1559 initiated DESPITE gas usage being over the 100% 15M target gas usage.
This is surprising because normally under EIP-1559, if each block stays exactly at the 100% gas target, gas price will also stay exactly the same.
Date | Block Time | Blocks | Gas % used | Gas Price (Gwei) | Notes |
---|---|---|---|---|---|
2015 Year | 17 | 4992 | 0% | 126 | |
2016 Year | 15 | 5829 | 2% | 34 | |
2017 Year | 17 | 5266 | 18% | 24 | |
2018 Year | 14 | 5906 | 44% | 21 | |
2019 Year | 14 | 6038 | 46% | 16 | |
2020 Year | 13 | 6480 | 67% | 60 | |
2021 Q1 | 13 | 6503 | 80% | 150 | |
2021 Q2 | 13 | 6463 | 92% | 87 | |
2021 Q3 | 13 | 6430 | 99% | 67 | EIP-1559 introduced |
2021 Q4 | 13 | 6370 | 102% | 117 | |
2022 Q1 | 13 | 6454 | 101% | 95 | |
2022 Q2 | 14 | 6112 | 101% | 59 | |
2022 Q3 | 13 | 6482 | 101% | 21 | |
2022 Oct | 12 | 7157 | 102% | 23 | Post-Merge |
So why is this happening?
This counter-intuitive phenomenon can be explained by simple math. After EIP-1559, gas price changes whenever the previous block's gas usage deviates from 15M gas. It increases by 12.5% at 30M gas, and decreases by 12.5% at 0M gas. Any value between the 2 limits affects price proportionally up to 12.5%.
So what happens if a 30M-gas block were followed by a 0M-gas block?
(x+a) * (x-a) = x^2 - a^2 (1 + 0.125) * (1 - 0.125) = 98.4% => 2.6% price decrease
Thus if a 30M-gas block were followed by a 0M-gas block, the gas price would still fall 2.6% even though the average gas usage stays at 15M gas. The larger the volatility from the 15M-gas target, the larger the negative price pressure.
In fact, in an extreme theoretical case where there were one full day of 30M-gas blocks followed by another full day of 0M-gas blocks, the gas price on the 3rd day would be 1050 times smaller despite that the average usage between the 2 days was still 15M gas. Obviously, validators will not magically be able to process transactions 1050 times cheaper, so this is completely theoretical.
Nevertheless, the effect is there, and we have been experiencing a 20-40% decrease in gas prices quarterly since EIP-1559 was introduced in Aug 2021. Though the decrease has slowed down since The Merge.
A mix of these 2 cases will continue happening until a dynamic market equilibrium is reached:
- Gas price keeps falling every quarter
- Daily gas usage rises noticeably above its current 102% average. (Edit: I did some simulations afterwards. Gas usage actually remains around 102-103% of 15M when the price remains stable. So it's actually not as noticeable as I thought.)
Edit: I thought about it more, and it does seem to either be a bug or a purposeful design flaw.
Let's say you have 3 fee changes of a, b, and c where the sum of all 3 is zero. You have to find a fee formula f(x) where the product, f(a) * f(b) * f(c) = 1.
So I figured out the correct formula is to use any exponential function. For example:
a + b = -c e^a * e^b * e^c = e^a * e^b * e^(-a-b) = 1
I was going to report it, but looks like someone else already mentioned it a long time ago: https://ethresear.ch/t/make-eip-1559-more-like-an-amm-curve/9082/2
Guess they never bothered fixing it.
Edit 2: Oh wait, that "someone else" was vbuterin.
[link] [comments]
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments