The Upcoming Ethereum Shanghai Upgrade: 3 Big Improvements

Written By
Erik
First Published
December 7, 2022
Last Updated
April 19, 2023
Estimated Reading Time
3 minutes
Shanghai Upgrade
In this article...

The Ethereum Shanghai upgrade, scheduled for the second half of 2023, will be the first update since the Merge of September 2022. Shanghai is less spectacular and less high-risk, but important. The upgrade has 3 main changes:

  1. People who currently stake their ETH will finally be able to withdraw.
  2. The transaction fees that builders pay will be lower.
  3. Layer 2 will get some scalability improvements.

In Ethereum’s roadmap, the Shanghai upgrade would be part of phase 2, the Surge – even though these phases are not precisely sequential. The list of proposals for the Shanghai upgrade are currently (December 2022) slated for a review. So we don’t know the exact list yet. But it’s likely that what will come out will make the following three upgrades possible.

1: Finally Withdrawing Your Staked ETH

Perhaps the most anticipated proposal is EIP 4895, which will allow for those who have Ether staked on the Beacon Chain to withdraw, along with any rewards they have earned over time.

Currently, anyone who staked ETH as part of the validator process on the Beacon Chain has not been able to withdraw their stake or their rewards directly. Instead, the only option was to wait or to get involved in liquid staking, in which case you got a staked ETH token that you could trade – and that mostly but not always traded close to the price of 1 ETH.

Two types of withdrawal unlocks are expected post-Shanghai: partial and full withdrawals. 

Partial Withdrawals: Skim Your Staking Yields

After the Ethereum Shanghai upgrade, everyone who has been staking ETH over the past two years, has a good reason to withdraw the staking yield they collected in that period. First of all, simply because they can: they might want to sell some of their ETH. But more importantly because the staking yields pre-Shanghai don’t compound (it’s not compounding interest, so to speak).

Partial withdrawals are often called skimming. As just mentioned, active validators may withdraw their aggregated staking rewards and reduce the balance of their validator down to 32 Ether.

Full Withdrawals: Join the Waiting Line

After the Ethereum Shanghai upgrade, validators on the Beacon chain will in principle be allowed to exit: they can shut down their validator and reclaim their entire 32 ETH stack. Why just ‘in principle’? That’s because not all validators are allowed to exit at once. There will be a maximum rate at which they are allowed to close shop. Because if they indeed would all exit at the same time – (extremely unlikely as this may be) – it would pose security risks to the Ethereum network.

By the way, there will be no gas fees for withdrawals for un-staking ETH. This is a small gesture from the Ethereum Foundation to validators. With withdrawals limited in number, apparently operational costs are low enough to make this gesture possible.

2: Tidying up (Separation of Code and Data) 

One of the important proposals for the Ethereum Shanghai upgrade comes from developer Tim Beiko: EIP-3540. It calls for the separation of code and data, with the creation of an Ethereum Virtual Machine Object Format (EOF). This separation will be welcomed by on-chain code validators (like those used by layer-2 scaling tools, such as Optimism or Polygon).

Why is this a welcome upgrade? At the moment, code validators, such as those in Layer-2 scaling solutions like Polygon, have to follow an arduous process to process transactions. The proposed separation would make it easier for developers to code smart contracts into Ethereum apps while lowering gas fees. 

Code validators will be able to distinguish between code, which is executable, and data, which is non-executable. This will be a nice feat of housekeeping. It will result in ease of use and big gas savings.

3: Reduced Costs for Traders (Warm Coinbase)

After the Ethereum Shanghai upgrade, the fees that builders pay could drop with an order of magnitude. In the current state of affairs, so-called coinbase payments (not related to the US crypto exchange 🙂 are expensive. They are popular though, as they come with the benefit of cancellation of transactions that would otherwise revert. These kinds of transactions are vital for Flash loans, for example. 

With the implementation of ‘warm coinbase’, builders (read more about the role of builders in the Flashbots article) will pay lower fees for accessing the piece of software called coinbase. They access this coinbase to receive new ETH, which will eventually be paid to validators (proposers). Such a transaction may need to interact with the coinbase many times. After the Ethereum Shanghai upgrade, only the first time it accesses the coinbase, it costs more to “warm” the coinbase up. Once it’s warm, it costs less to access it.

The warm coinbase will help make the builders more profitable, which ultimately should benefit everyone who transacts on Ethereum. Some fees that builders pay to the network could drop with an order of magnitude.

Shandong Testnet Live

Ethereum’s Shandong testnet has been live since November 2022. It allows developers to experiment with proposals of the Ethereum Shanghai upgrade. They can try out the potential EIPs and look for issues.

Erik started as a freelance writer around the time Satoshi was brewing on the whitepaper.
As a crypto investor, he is class of 2020. More of a holder than a trader, but never shy to experiment with new protocols.

Discussion on "The Upcoming Ethereum Shanghai Upgrade: 3 Big Improvements"
You must Subscribe or Login to post a comment.
Additional Resources
Wealth Mastery
Subscribe Today!
Join the Wealth Mastery Investor Report

Join the Wealth Mastery Investor Report

By Lark Davis
Privacy Policy

Who we are

Our website address is: https://thewealthmastery.io.

Comments

When visitors leave comments on the site we collect the data shown in the comments form, and also the visitor’s IP address and browser user agent string to help spam detection.

An anonymized string created from your email address (also called a hash) may be provided to the Gravatar service to see if you are using it. The Gravatar service privacy policy is available here: https://automattic.com/privacy/. After approval of your comment, your profile picture is visible to the public in the context of your comment.

Media

If you upload images to the website, you should avoid uploading images with embedded location data (EXIF GPS) included. Visitors to the website can download and extract any location data from images on the website.

Cookies

If you leave a comment on our site you may opt-in to saving your name, email address and website in cookies. These are for your convenience so that you do not have to fill in your details again when you leave another comment. These cookies will last for one year.

If you visit our login page, we will set a temporary cookie to determine if your browser accepts cookies. This cookie contains no personal data and is discarded when you close your browser.

When you log in, we will also set up several cookies to save your login information and your screen display choices. Login cookies last for two days, and screen options cookies last for a year. If you select “Remember Me”, your login will persist for two weeks. If you log out of your account, the login cookies will be removed.

If you edit or publish an article, an additional cookie will be saved in your browser. This cookie includes no personal data and simply indicates the post ID of the article you just edited. It expires after 1 day.

Embedded content from other websites

Articles on this site may include embedded content (e.g. videos, images, articles, etc.). Embedded content from other websites behaves in the exact same way as if the visitor has visited the other website.

These websites may collect data about you, use cookies, embed additional third-party tracking, and monitor your interaction with that embedded content, including tracking your interaction with the embedded content if you have an account and are logged in to that website.

Who we share your data with

If you request a password reset, your IP address will be included in the reset email.

How long we retain your data

If you leave a comment, the comment and its metadata are retained indefinitely. This is so we can recognize and approve any follow-up comments automatically instead of holding them in a moderation queue.

For users that register on our website (if any), we also store the personal information they provide in their user profile. All users can see, edit, or delete their personal information at any time (except they cannot change their username). Website administrators can also see and edit that information.

What rights you have over your data

If you have an account on this site, or have left comments, you can request to receive an exported file of the personal data we hold about you, including any data you have provided to us. You can also request that we erase any personal data we hold about you. This does not include any data we are obliged to keep for administrative, legal, or security purposes.

Where we send your data

Visitor comments may be checked through an automated spam detection service.

Join the Wealth Mastery Investor Report

By Lark Davis