DeFriday #3: How Arbitrum Solves Ethereum’s Scaling Challenges
Plus: Convex's insane growth, Elon's long game, DOGE, and Esports
This week we're continuing the theme of solving Ethereum's scaling challenges by talking about the launch of Aribtrum: a Layer 2 rollup that was deployed for developers last week and should be opening up to consumers within the month.
What is Arbitrum
The biggest bottleneck to broader Ethereum adoption today is gas fees. Unless you're moving around amounts above $10,000, the gas fees can quickly erode any interest you might earn on your capital, creating a significant barrier to entry to DeFi for the vast majority of people.
One solution is to use a completely different blockchain with lower transaction fees, like Solana or Binance Smart Chain.
Another solution is to use a sidechain to Ethereum, like Polygon which I discussed last week.
And the third solution that many in the crypto and DeFi space have been waiting for are Layer 2 Rollups: solutions that sit on top of Ethereum and abstract away some of the activity into a less expensive environment, while still retaining the security and reliability of the main Ethereum blockchain.
There are two main types of rollups being developed right now: Zero Knowledge Rollups (also called ZK-Rollups, which I’ll cover in the future), and Optimistic Rollups. Arbitrum is an Optimistic Rollup, so that's the type we need to understand to understand how Arbitrum works.
How Arbitrum's Optimistic Rollup Works
On Ethereum there are two broad types of transactions: transfers and computations. Transfers move ETH from one wallet to another and are where Ethereum and Bitcoin are essentially the same. But Ethereum also has a computational layer where the network can run the code built into smart contracts just like your computer is running the code built into this website.
Ethereum can be slow because executing the logic in smart contracts requires significantly more computing power than just transferring Ether from one wallet to another. For any given smart contract in an Ethereum application, every single node on the Ethereum mainnet has to run every computation. It’s done this way in order to prevent fraud, but it means that gas fees for Ethereum are expensive and prone to spike during high-traffic periods.
Arbitrum solves this problem by moving Ethereum smart contract computations off-chain. It runs those computations on its own network and then posts the net effect of those computations back to the main Ethereum blockchain. Arbitrum still runs every transaction using the same smart contract code as the Ethereum mainnet, it just doesn’t use up Ethereum computing space to do it.
This could potentially open the door for fraud, but Arbitrum has a solution. Since multiple validators are processing the transactions off-chain, when they post data on-chain, it should all be the same. If it isn't, Arbitrum does a correction round of computations on the Ethereum main chain to resolve it. It's actually a very clever system, here's how one of the founders describes it:
"Arbitrum allows for the efficient resolution of the dispute on Ethereum, using a unique on-chain dispute resolution mechanism that guarantees correctness even if there is just one honest validator, referred to as Arbitrum’s AnyTrust Guarantee. If any validator tries to lie about an Arbitrum computation’s behavior, an on-chain contract will identify and penalize the dishonest node by using a highly-efficient challenge-based protocol. The challenge system requires validators to submit proofs on-chain backed by staked collateral until the issue is resolved."
If your transactions don't line up with everyone else's, anyone can submit their proof of what the truth should be, along with a collateral stake showing confidence in the proof. If your proof turns out to be fraudulent, you lose your collateral. Since any attempt at a fraudulent transaction will immediately get picked up by the other validators and result in the thief losing any collateral they stake, there's no economic incentive to try to cheat the system. You have to put your Ether where your mouth is.
This is a big area where we see the benefits of a Layer 2 over a sidechain. While Aribtrum does process most transactions on its own network, if there's ever a dispute, that dispute is settled on Ethereum. This gives it a more established and battle-tested security layer than sidechains like Polygon, which have to resolve disputes on their own.
When it fully launches, Arbitrum will allow for significantly more and cheaper Ethereum transactions than can currently happen on the Mainnet, all while retaining Ethereum's security layer.
So what are the downsides?
One big downside is that while Arbitrum is built on Ethereum and inherits its security layer, it's still a separate network, which means apps on Aribtrum are not interoperable with apps on Ethereum.
Apps on Ethereum can all interact with each other, and apps on Arbitrum can all interact with each other, but Ethereum apps won't be able to interact with Arbitrum apps. If you store a bunch of your Ether on Compound on the Ethereum mainnet, you won't be able to borrow against it on the Arbitrum network, even if Compound has an identical application on Arbitrum.
So when Arbitrum launches, the apps which launch with it will have to find ways to incentivize people to bring funds over to their Arbitrum versions from the Ethereum mainnet. If Polygon and other networks are any indications, that most likely means there will be significant incentives for people to bring funds over to Arbitrum in its first few months.
The other main downside is simply that it's not yet proven. It's undergone extensive testing and has some of the best people in the Ethereum space behind it, but it hasn't seen the real world yet, and you never know what might break. Hackers and exploiters will certainly be looking for ways to game the off-chain transaction layer, and if they find a way to exploit it, that could have a significant impact on the ecosystem.
When Can We Use It?
Arbitrum launched for developers last week, and major Ethereum applications have already started copying their code over for their Arbitrum launch. Since Arbitrum uses Solidity like Ethereum, the Arbitrum team says it's extremely simple for existing Ethereum applications to copy their code over for an Arbitrum version.
After a few weeks of developers getting set up and ready for launch, Arbitrum should open up to the public later in June. It's not 100% public which apps will be there at launch, but a few like Sushi, Alchemy, Etherscan, Chainlink, The Graph, and Uniswap have publicly shared their intent to launch, and Arbitrum claims there were over 250 apps on the waitlist for the developer test period.
When it does launch later this month, it will be exciting to see just how much activity there is, and what new kinds of apps it enables to be built.
App of the Week: Convex
Considering Convex only launched two and a half weeks ago, this is a pretty insane growth rate. If it were on DeFi Pulse it would already be in the 11th spot! It’s not hard to see why people are flocking to it though, considering the high APY it offers on CRV tokens as well as stable coin pairs:
In Other News
If you’re interested in picking up some Solidity, the programming language powering the smart contracts of Ethereum, Nader Dabit put together a list of resources he used to learn it for a job over a few months. I’m currently learning Solidity, so I definitely appreciated this.
Croissant on Twitter put together a pretty interesting theory on what Elon’s end game might be with all of his Bitcoin talk. Might be a bit conspiracy-leaning, but it’s definitely something you could see Tesla doing in the future.
After a long resistance to acknowledging DOGE, Coinbase Pro has decided to add it to their trading platform. It’s not clear if or when they’ll add it to the consumer-focused Coinbase site, but this is certainly a big shift from their historic avoidance of “meme” coins.
FTX, one of the biggest crypto exchanges in the world, is funding $210 million to the esports team TSM. Considering how much overlap there is in interests between DeFi and video games, this feels like a perfect union.
That's all for this week, be sure to subscribe to get future editions!