What do you think of the suspension of the Odyssey event, where is the bottleneck of Layer2?
区块律动BlockBeats
2022-06-30 07:31
本文约1232字,阅读全文需要约5分钟
Layer2 is not a panacea.

Original compilation: 0x711, BlockBeats

Original compilation: 0x711, BlockBeats

This article is based on the views of Cinneamhain Ventures partner Adam Cochran’s personal social platform, and BlockBeats’ translation is as follows:

With the Arbitrum Odyssey event driving up the gas price on the Arbitrum network, there has been a lot of talk about the effectiveness of L2. So it's time to revisit some of the basics behind the current L2.The first thing to remember is that there are many types of L2, but the basic premise is the same:

The current L2 technology, in a nutshell, mostly separates the computing process from the main network, but the storage remains on the main network. Therefore, this means that on L2, elements such as "calldata" and state storage in smart contracts may have relatively stable gas costs (or higher gas costs in some cases) than on mainnet, But the computational cost decreases exponentially.

therefore,therefore,Simply migrating the contract may not save a lot of gas, but some optimizations can bring great improvements.

For example, Aave optimizes V3 for rollup, which optimizes the gas cost by 10 times. As a super simple example, if you have two variables A = 10 and B = 7, it's more efficient to compute (A - B) internally than to make any external calls to estimate the value or store a third state.

Now we can improve contracts not only by call data/storage transfers, when we use call data or storage we can also compress or byte pack it. This is the same principle that ZIP files compress data on your computer.But even after all these improvements, there is another bottleneck,Now rollup technology solves this problem by packaging these transactions. If we aggregate 100 transactions together, we only need to pay one fee to write the output state to the main chain, so each transaction on L2 pays a small fraction of the fee, saving the overall fee.

but,but,If there is only one transaction at a time, they still have to pay the full fee to the mainnet.Currently, most L2s may abstract a way and pay for it out of pocket, but they won't be able to do so forever. So as long as L2 doesn't hit another bottleneck or have an unoptimized contract doing a lot of transactions,

The more transactions they have, the more transaction cost efficient they will be (the opposite of L1).

There are other bottlenecks now, including sequencer or solver capacity, custom EVM implementations, and other improvements around data storage and compression, but the core elements are there.

I think it might be disturbing to see L2 fees skyrocket, especially when mainnet fees are very low compared to last year. But it's important to understand why.

To reiterate, Odyssey is running on Arbitrum unoptimized V1, and is running a lot of transactions calling data and storage (bridge), and the transaction volume is still moderate. In the future, we can expect tx type rebalancing.

recommended readingrecommended reading, can have a deeper understanding of L2.

Original link

区块律动BlockBeats
作者文库