Eth 2.0 Sharding in DeFi: Cities, suburbs, farms
Level up your open finance game five times a week. Subscribe to the Bankless program below.
Dear Bankless Nation,
What is DeFi? It’s decentralized finance.
What will DeFi look like in Ethereum 2.0?
If you want to interact with DeFi protocols on the Ethereum mainchain today there’s only one place to do it. One global gas rate. One place for transactions. One global set of co-located money legos.
In Eth2 there will be 64.
All shards backed by the same settlement guarantees—yet each with different activity levels. Some with excess space, some full. And each shard could have different blockspace costs. You might hear statements like—“shard 3 transactions are 60 gwei right now…you should come to shard 6 where they’re only 3 gwei!”
Will this mean certain economic activity pools on the same shard?
Haseeb is one of my favorite thinkers in the space. Today he projects forward to give us an enticing mental model for understanding economic load balancing in Eth2.
I’m a sucker for analogies and awesome writing.
This article is both.
🙏Sponsor: Aave—earn high yields on deposits & borrow at the best possible rate!
Guest Writers: Haseeb Qureshi, Managing Partner at Dragonfly Capital
The Future of DeFi in Ethereum 2.0
Ethereum today is incredibly congested—it’s even more congested now than it was during the height of the ICO bubble.
This is impressive, but also worrying! Ethereum 2.0 is still a ways away, but the tiny island of Ethereum 1.0 is already populated to the point of saturation.
Artist’s rendition of Ethereum 1.0 (source)
You’ve probably heard that Ethereum 2.0 is going to be sharded. Beyond base scalability improvements, sharding is how Ethereum 2.0 is going to scale to meet demand.
But many people have asked—will sharding really work for DeFi? After all, sharding breaks composability, and isn’t composability the main thing about DeFi? (Money Legos™ and so on.)
Let’s draw out this line of thinking.
Ethereum 2.0 is going to create a bunch of shards, which will work like loosely connected blockchains. But all the DeFi stuff will end up living on a single shard, since it all wants to coagulate together.
So we’ll end up in the exact same place we started: one huge DeFi shard, massive congestion.
The same crowded island, but a little bigger now. (source)
In a sense, this vision is almost certainly correct. But it’s wrong in being alarmed about this: in fact, this is perfectly fine and to be expected!
Let me paint a thought experiment for you.
Cities, Suburbs, and Farmland (DeFi Infrastructure)
Imagine the day that Ethereum 2.0 launches with full smart contracts. On day one, it’s empty, like a fresh and untouched landscape. Eager Ethereum 1.0 settlers disperse across the shards.
Ethereum 2.0 on day one. (Source)
Will they spread uniformly across this landscape?
Of course not! The first settlers will want to band together and form cities.
In cities, individuals live and work together because they benefit from coordination and proximity. In exchange for the increased productivity of living in a city, those settlers are willing to pay more in higher rents and more congestion (in Ethereum, gas prices).
But it’s worth it! These early cities are the centers of commerce. It might be too expensive for most people, but that’s okay. Those who benefit the most from being near the center of commerce are incentivized to move there.
This first city in Ethereum 2.0 will likely be the DeFi shard.
The city-like DeFi shard. Ah, the hustle and bustle of composability! (Source)
That DeFi shard will be the place where the major DeFi protocols settle—those that benefit from high velocity and being connected to large liquidity pools for liquidations, flash loans, or whatever. Maybe there will be one major financial shard, like London, or two city shards with their own specializations, like New York City and Chicago. I expect if there is a second city shard, it will be for centralized exchange settlement, separated from DeFi infrastructure and all of its chaos.
City shards will be expensive and high-throughput, with primarily high-value transactions (otherwise the gas cost would be too prohibitive).
But isn’t that awful? Wasn’t that what we were trying to avoid? Now normal people won’t be able to use the DeFi shard at all!
Ah, but hold on. The other shards will not be empty. Most people will live in the outskirts of the cities. You don’t need to live in Manhattan to occasionally trek up there when you want to buy something exotic. But most of the time, you’ll be just fine living on another shard and making it into the metropolis when you really need to—the DeFi shard is only a few minutes’ cross-shard transaction away.
So where will most people live?
I expect there will be two other kinds of shards: suburbs and farmlands.
Suburbs are places where lots of people will live at relatively low cost, and have access to decent services—not a ton, but enough to get by for most of their needs. If you want to do something fancy, like get a flash loan to refinance a multi-million dollar Maker vault into a recursively leveraged Compound position, then hey, you might have to take the train to the DeFi shard to do that.
But if you want to do something simple at the local corner store, like swap some ETH for DAI or buy some WBTC, that’ll be easy enough. Almost every ERC-20 will be cross-shard tokenized and available in the suburbs, and there will be local MMs for the most popular tokens and simple use cases. And like in real suburbs, most suburban shards will look pretty much the same.
Suburbs will see medium-throughput, medium-value transactions. It will be economical for most people to just park their assets here and live out their blockchain lives in middle-class tranquility.
The blockchain ‘burbs. For us normies. (Source)
Finally, there are the farmland shards. These are the rural areas that are empty of people. If you are a blockchain game that is mostly doing its own thing and doesn’t immediately need to interoperate with other assets, you can just settle all your game actions directly onto a farmland shard.
Or if you’re a weather app just dumping a bunch of data on-chain, you’d rather do it in an unpopulated area, because why not? It’s not like that shard is being used for anything important.
Ah, perfect for dumping my homomorphically encrypted supply chain data! (Source)
If there are pollutive activities that are uneconomical in cities or suburbs, take it to the boonies. There are no DeFi services or tokens to displace anyway. Out here, no one is all that bothered. Farmland shards allow for high-throughput, low-value transactions to your heart’s content.
Blockchain Urban Planning: DeFi in ETH 2.0
This vision of DeFi in Ethereum 2.0, if true, tells us two things.
First, yes, there will be congested shards on Ethereum 2.0! And the most congested shards will be the highest value parts of DeFi that benefit from composability. Nevertheless, DeFi will also expand cross-shard so it can provide some ancillary services in suburb shards, akin to the local branch of a national bank.
But sharding doesn’t mean that activity is uniformly spread across shards. That’s not only impossible—it’s economically stupid. Let high-value enterprises move into the cities, let boring families move to the suburbs, and let farmlands do their thing far away from the valuable real estate.
Heterogeneity = economic efficiency. (Source)
(This also gives you a sense why programmatically load balancing contracts across shards is unwise! We should assume that protocols and contract deployers are making rational choices about where to live. Uprooting a business from a city center and transplanting it onto farmland to “load balance the city” would be a disastrous mistake.)
You can think of sharding as offering a similar vision to interoperability as Cosmos or Polkadot. Many different blockchains, each specialized for certain economic equilibria, with a superhighway connecting them all. Except in Ethereum 2.0’s case, all those shards will speak the same language, share the same tooling, and benefit from the immense community that Ethereum has already garnered.
Ethereum 2.0 is a big and challenging vision. It carries a lot of execution risk. But at this point, I don’t think it’s possible for Ethereum to lose its status as DeFi’s largest city. It’s already the Wall Street of crypto, and it doesn’t look like there are any serious contenders to challenge its dominance.
In the meantime, will we have to pin our scaling hopes on layer 2? I see these as shopping malls built on top of Ethereum.
They’ll be an improvement, but it’s likely they won’t be enough. Impatient builders may instead construct makeshift suburbs and farmland around Ethereum 1.0, via bridges with other blockchains. In other words, if Ethereum 2.0 takes too long, outsource your minor cities to another blockchain like Serum is doing, or wait for the Cosmos/Polkadot interoperability story to materialize.
Will DeFi wait for Ethereum 2.0, or will the germ just spread wherever it can?
For now, one thing is clear: DeFi is going to be too big for Ethereum as it currently exists today.
Where it grows from here, only time will tell.
- What does DeFi look like in the world of Ethereum 2.0?
- Does sharding break DeFi’s composability?
- Read some of Haseeb’s previous writing!
Haseeb Qureshi is the managing partner at Dragonfly Capital, a cross-border crypto venture fund.
Subscribe to Bankless. $12 per mo. Includes archive access, Inner Circle & Badge.
🙏Thanks to our sponsor
Aave is an open source and non-custodial protocol for money market creation. Originally launched with the Aave Market, it now supports Uniswap and TokenSet markets and enables users and developers to earn interest and leverage their assets. Aave also pioneered Flash Loans, an innovative DeFi building block for developers to build self-liquidations, collateral swaps, and more. Check it out here.
Not financial or tax advice. This newsletter is strictly educational and is not investment advice or a solicitation to buy or sell any assets or to make any financial decisions. This newsletter is not tax advice. Talk to your accountant. Do your own research.
Disclosure. From time-to-time I may add links in this newsletter to products I use. I may receive commission if you make a purchase through one of these links. I’ll always disclose when this is the case.