The Clearingchain: Abstracting every chain with intents

ETHCC 7 · 8 Jul 2024 · 20:12

Arjun Bhuptani, founder of Everclear (formerly Connext), explains why he thinks chain fragmentation calls for a clearing layer. He points to L2BEAT counts of 61 live and 79 upcoming rollups, and uses the Uber analogy to describe how intents and solvers work. His proposal is a protocol that negotiates relationships between existing bridges rather than holding its own liquidity, so opposing flows, such as an Across solver and a DLN solver moving in opposite directions, can be netted instead of rebalanced. He compares this to Splitwise and traditional clearing, and says Everclear focuses on clearing, leaving messaging to other protocols.

Speakers

Topics

From ETHCC 7, hosted by Ethereum France.

Transcript

Hello. Oh, that's loud. Okay, I can stand a little bit further away from this. Um hi everyone. My name is Arjun. I'm one of the founders of Everclear. Um we were previously called Connext, and so if you if you see that in the agenda, uh that's why we did it. We recently did a rebrand. Um Everclear is the first uh what we call a clearing layer. Um and I'll be ta uh this presentation is gonna be centered around talking about fragmentation, which Clem kind of touched on a little bit in his talk. Um and uh and kind of where we're headed with this world of intents and about how Everclear fits into that picture. Why why there needs to be a clearing layer.

So um who here does not know what I mean when I say chain fragmentation. Awesome. Um I gave a similar talk a couple of years ago at Dapcon, and this was this is just a topic that wasn't really as well understood. And it's it's really awesome to see how this has become a core part of the narrative. And it really is one of the biggest problems that this space is facing today, right? This is uh is there a laser pointer on this? Nope, I don't think so. Um this is a uh this is a TVL chart from Dev DeFi Lama that shows just like how TBL has changed over time. You can see this little blip that's that's Terra, unfortunately, in 2022.

Um you can kind of see that over time there's just like an increasing amount of activity and volume happening on other chains. Um this problem is also just getting worse. And so uh this is L2 beat. Um you can see that there's 61 rollups that are live today. That's kind of crazy, right? That this number has really been accelerating. And then there's a whopping 79 roll-ups that are now upcoming that are already registered in L2B. So this is not including everything else that's not on L2beat yet. For example, Everclear is not, I don't think it's on L uh uh L2beat yet. Um and so we we're kind of accelerating into this paradigm where everybody's going to be operating on different chains.

We need to be able to use applications that are living in this like very, very fragmented world. Um, but we have, as we, I'm sure all of you have experienced at some point or another, the experience of doing this is just awful. So how do we fix this? Um there's a lot of discussion happening on Twitter right now around chain abstraction. Um chain abstraction is this like vision and this thesis that you can create an experience for users where users never actually need to care what chain they're on. Right? How we accomplish this is part of an open, open set of problems that are being worked on by a bunch of different ecosystems and bunch of different organizations. Um but you've probably seen some of the work that's been done by projects like NIR on chain signatures, um, by particle, um, by like OneBalance, um, things like that.

Um, and I don't want to go too deeply into how all of this stuff works because I don't have a ton of time, but um at a high level, I think a lot of this is centered around intent. So this is a this is a flow of uh a very, very common and popular intent protocol called Uber. Um and Uber is uh is a really interesting case study of why you can how you can kind of abstract away the experience of interacting with this like very, very complex and fragmented ecosystem of drivers by creating an application that just lets you like broadcast to these drivers your intention to get from one place to another. So when you when you call an Uber today, what are you doing?

You're saying, I get me from point A to point B at the lowest possible cost within the lowest possible time. Uber broadcasts this out to solvers, um, intent solvers, who are in this case drivers. Drivers get you to your destination, and then you settle with them uh by paying them. This is kind of the core of how just about every intent system works today. So if you look at things like a cross, for instance, as an intent-based bridge, effectively what they're doing is this, right? They're broadcasting out to their network of solvers saying, I, as a user want to get from Arbitrum to Optimism, I want to send 10k USDC, and some solver puts up their hand and says, I'll make this transaction happen, whoops, uh as quickly as possible and at the lowest price possible. But this has a little bit of a gotcha today, which is that mostly, most of these ecosystems are actually just running their own solvers.

Um solving for intents is super, super centralized at the moment. Um almost all of the order flow is kind of captured by like either the the like protocol teams themselves or by giant market makers like Wintermute. Um and so this is this is a diagram that just shows like the flows moving through across in DLN, two of the largest kind of intent-based bridges today. And you can see that almost all of the flow is getting captured by some a few, like a small subset of the total set of potential solvers. And there's really interesting reasons for this. So there's uh this is kind of like what the the solver landscape looks like today, right? On the on the on the one hand, um, if you kind of think of the the the y-axis here as the amount of volume that's being captured by uh by solvers, on the one, on the all the way on one side you have these like sophisticated solvers like Wintermute, um, and then all the way on the other side is you.

If you're trying to run a solver, there's obviously not that much you can do because it's really, really hard to do this profitably today. One of the things that we kind of set out to do, um so we we uh connect, I guess previous what we were called previously before EverClear, um, was one of the first intent based bridges back in 2021. And when we were building, we we kind of encountered this problem where all of our solvers were just struggling to kind of like continue to operate at scale. Um, and except for like the the few sets of solvers that had like operational teams that were working actively on managing their inventory and running this infrastructure, right? And that's not that's not really decentralized.

That doesn't really get us to where we need to go. We need to be able to make it as easy and accessible for everybody. So to understand why, let's dive a little bit into a little bit more into how intents work. This is basically just the Uber diagram, but a little bit more technical, right? Let's say you're a user that wants to take uh that wants to go and deposit into Ave across chains. So one way to do this, and the the the today's way to do this is to go and like bridge across chains, uh get gas on the chain that you need to go to, deposit into Aave, get your token, et cetera. Um obviously, as we all know, this is a super painful experience.

Another way to do this, and this is something that is already actually possible today with a bunch of different projects, um, is to just use intents. So instead of going and depositing into Aave yourself, you can just signal to an intent protocol, I want to go and put 10K into Ave on Arbitrum. And the intent protocol can broadcast this out to the network of solvers, a solver can come and put their own 10k into Ave for you, and then at that point, I keep doing this, let me just use this one. Um at that point, uh, your part of this transaction is done, right? So for from your perspective, you've you've like deposited funds on one chain, and you immediately get deposited into Ave within maybe like a few seconds.

Um fantastic user experience. It's what comes afterwards that's kind of interesting, because complexity in this space doesn't just like go away, right? Like what you've done is taken away the complexity of the interaction from you and you've given it over to the solver, but now the solver has to go and figure out how to go and get your money. And that's that's the hard part. So typically how this works is that solvers settle, uh, and that means that they're basically going and getting your funds back on the source chain. This is pretty easy when you're on optimism and uh you know they're going and unlocking USDC on optimism, which is easy to get out of. But what if you were coming from DGenchain or some other random L3 that nobody's ever heard of that doesn't have any users on it?

All of a sudden, the solver has their liquidity stuck on this like long tail chain. And so naturally, what the solver has to do is rebalance. Um rebalancing is a process by which you bring liquidity back to where you need it to be in order to be able to actually use it, right? Uh pretty simple, simple uh thing to like think about, but in practice it's really difficult to do. Because how do you rebalance from DGenchain? Uh bridge back to Arbitrum and take seven days, and then bridge from Arbitrum back to Ethereum and take another seven days. Um as a solver that's like a capital actor, you're trying to optimize for your capital efficiency. Um, taking, locking up your liquidity for 14 days definitely doesn't do that.

And this is where we get into this question of where does solver centralization come from, right? Because who is able to do this? It's Wintermute, right? Wintermute with like hundreds of millions of dollars of capital across chains that is already managing inventory, that's already doing this process is a core part of how they operate. Um, and as an individual user, unless you're spending a hundred percent of your time actually operating and managing your capital, there's no way that you can really compete. What's really interesting about this is that if you kind of zoom out, everyone kinda deals with this problem in some way or another. So you go and you talk to the solvers about how they how are they solving this today, right?

Um, and I mean solvers that are not like the biggest ones, but kind of as you start getting them to longer tail. And you find that when you go and ask them, they say, okay, well, we're actually working with market makers, or we're working with other liquidity bridges. And you go to liquidity bridges and market makers and you say, How are you guys doing this? And they say, Oh, well, we're using the centralized exchanges. And you go to the centralized exchanges and you say, How are you doing this? And they're like, Well, we're hiring a 20-person team that is going to you know canonical bridge UIs and just pressing the button once a week, um, because there's no other way to do it. And so at some point, the buck has to stop, right? Like someone has to deal with this pain today. Um, and this is effectively the problem that we're trying to solve.

It's a really, really difficult problem, which just comes from the fact that we have this like massive asynchrony between chains that's just not gonna go away, at least for a while until we achieve like a proof singularity, maybe in like five to 10 years. Here's the thing that's really interesting about all of this. We are actually doing this way more than we need to. If on a on a 24-hour rolling basis, about 80% of the flows that are moving between chains actually just net out, which means that if you're sending like a dollar into Arbitrum, and within the same time period, about 80 cents actually comes out. And so that kind of begs the question of, well, why did you have to send a dollar in the first place?

Why could you not have just sent 20 cents? And this concept of netting is something that's particularly interesting as well. Because netting is a is a staple of how like traditional financial systems work everywhere in the world, right? This is how like Visa works, this is how the stock exchange works, uh, the New York Stock Exchange works. Um, but it's something that just doesn't really exist in the space yet. So netting is uh honestly, it's hard to explain without a diagram. And so netting is just like a process by which you're taking a bunch of commitments, financial commitments that people have to each other, and you're translating them down into like one final sum that actually needs to be sent from one person to another. Um, for those of you that live in North America, a great example is like Splitwise, is an app that lets you effectively net between your friends, right?

It's split-wise, you you go on a trip with your friends, everybody registers like how much money they owe each other, and at the end of the, like at the end of the trip, split-wise just tells you how much do you need to pay each person so that you don't have to do a ton of transactions anymore. To take advantage of this idea, we're proposing this novel primitive called clearing layers. Um, clearing is a very, very core component of how traditional financial systems work, and it's just something that like hasn't really existed in crypto yet at all. And I think it's it's time for that. It's that we we've sort of achieved the level of like maturity as an ecosystem where this is something that actually really matters and makes a difference. So, what is a clearing layer?

Um, a clearing layer is a protocol that helps negotiate relationships between different capital actors in this ecosystem. So rather than having you know yet another bridge or yet another liquidity pool sitting somewhere, and I'm sure you guys have seen the like you know XKCD comic with like you know, there are 14 competing standards, and then someone says, oh, well, someone should make a standard to unify this, and then there end up being 15 competing standards. Um, that's that's kind of the situation that we're stuck in right now with like liquidity-based bridges and like asset uh, you know, different kinds of like cross-chain asset implementations. Um a clearing layer is a is a way to try to go in a slightly different direction.

Rather than trying to go and build a liquidity system that has TVL and that controls liquidity in order to make cross-chain transactions happen, a clearing layer basically just negotiates relationships between existing bridges. So uh, you know, if, for example, we can go back to our to our earlier case with like a cross and DLN, um, rather if if there's a an across solver that is making a transaction go from like optimism to degenchain, and a DLN solver that's making a transaction go from DGen chain to optimism, there is no reason for both of those parties to actually rebalance, right? They can just net off against one another simply by telling each other what they want.

Um, it's it's effectively like a coincidence of wants. It's something that really CalSwap has has made so so incredibly important, but has this very, very interesting and and uh potentially much more expansive use case at the lower level. So how does this actually work? Uh I pulled this diagram from our docs. I'm realizing it's perhaps a little too technical. Um but in in a nutshell, um, how our clearing where it works or how every clear works is that it's it's a roll-up. It's basically just like a state machine that is helping to decide where flows are moving between chains and net them off against one another. So you have this like roll-up that sits in the middle of everything and it connects to every single chain.

Um as a liquidity provider, as a centralized exchange, as a market maker, as a solver, really anybody that is like making these like larger transactions across chains where you care more about making sure that it happens at the best possible price than making sure that it happens quickly. For any of these kinds of actors, um you can go and express your own effectively, your own intent to make these very, very efficient transactions across chains. And these intents, these what we call invoices, can be netted off against one another to get to the point where the total amount of value that you actually have to pay for to get between chains is a much smaller percentage of the total amount of value that's actually flowing between chains. So another way to say this is like instead of having to send 100,000 across chains, uh, you are able to send 100,000 across chains, but only actually have to pay for 10k.

Um, and this is really, really powerful. We think that this is how you kind of get to like 9x or 8x, 10x better pricing in this ecosystem, um, and get to the point where this is so so incredibly cheap and where there's liquidity is so widely available that you can actually expand to every single chain. And this is uh this is sort of like tying back to how chain abstraction works, right? One of the biggest blockers that we see today with chain abstraction, the chain abstraction thesis is that you have this really, really incredible ecosystem that is being built around permissioning across chains, being able to like give access to applications to be able to do things across chains between solvers that then go and take those actions on your behalf. But there is this like big gap, which is how can you make sure that there are even enough solvers to do this in the first place?

And this is really the problem that Everclear tries to solve, and that other clearing layers eventually will try to solve as well. Where if you can make liquidity easily available for every single actor that is interested in actually making these transactions happen, you can really allow anyone sitting at home running a Dapnode to become a solver. And that's really like the place that we need to get to to be able to support tens of thousands of chains. As a kind of final note, we we really believe that this is, I mean, we spent now years like working on this problem of how do we get to the point where like every chain is truly abstracted, right? There is no, there's really no need for a user to have to think about a blockchain because users don't want to, right?

Like when you go to YouTube today, you don't have to think about how Google's distributed database infrastructure works. You just look up cat videos and find cat videos. Um this is like what makes the internet great is abstractions. Um we think that if you can actually get to this point where you you enable liquidity on every chain to be like very, very seamlessly available, um, you can get to this outcome, right? This theoretical decentralized utopia that we have actually been talking about for a very long time, where people can go and spin up roll-ups like their servers, and each server can come connect it to the internet like it's supposed to. That's basically it in a nutshell.

Um, if you're interested in what you're doing, what we're doing, come talk to us. Um, and then I think I have a few minutes for questions as well. Wow, it is really bright up here. Oh my God. Thank you for the presentation. I have a question regarding uh if you settle from the mainnet to uh optimizes layer two, then you have this uh time where you can have someone that will prove that uh something misbehave on the layer two. So meaning that if um we settle with what what you you provide, it's maybe in five days we will learn that at the end we do not settle.

Yeah, that's a good question. So I think if if I'm understanding correctly, you're asking about like how does this system circumvent the need to get around the seven-day exit window of roll-ups? Is that correct? Um, a way to think about it is that like you don't need to exit millions of dollars out of a roll-up if you don't need to exit the roll-up at all. And what the system does is it actually just reduces the need to bridge altogether, right? Like someone is going to have to take that seven-day exit because overall, on a on a global basis, right, there are net flows of funds between chains. Like Arbitrum launches an incentivization campaign.

There is going to be like global funds moving towards Arbitrum for a period of time. Um and there's not really a way to stop that. But there's also in all of these cases, a very large amount of funds moving out of Arbitrum. And so what you can do is you can reduce the amount of funds that need to actually move in in and out. And this is something that we kind of observed, where like, you know, we've we've been um so so uh everclearer previously connects has been like working really closely with uh Renzo, which is a major LRT protocol, to do this this like thing that we we called restaking from anywhere. Um and Arbitrum is one of the main chains where it's available where like you can go and deposit ETH on Arbitrum and receive easy ETH instantly, which is which is an incredible user experience.

But on the back end, what we're doing is we're going and bridging all of that ETH out of Arbitrum. Um we're doing this using like an intent protocol and solvers and then eventually looking for liquidity providers to rebalance. But ultimately, like what are those LPs doing? They're going through the seven-day exits. And that's kind of where this came from, where we were like, well, we're we're bridging like $50 million out of Arbitrum, you know, plus every week. Uh this is an insane amount of money. And like what we're seeing is that there's actually like 40 million dollars flowing through our own system into Arbitrum. Why aren't we netting these things off? We should not be paying for 50 million dollars of rebalancing, we should only be paying for 10. Hello, good morning.

Hi, my name is Guangmin. I'm from uh Kleros. Thank you very much for the talk. Um can you tell us a bit more about how your solution can be used for transactions that are not monetary in nature? So, for example, like arbitrary messages, governance, uh executions that you need to bring across chains. Can you tell us more? Yeah, um I think uh the answer is that it can't. That's that's actually not a core part of our focus, right? There's a lot of really awesome protocols out there that are working on like decentralized messaging. Um previously, Connects was also working on decentralized messaging. Um but what we've realized is that there's a need to like modularize and specialize in this space.

Um and I think chain abstraction is actually prove providing uh let me actually jump back a couple of slides. So one thing that you see here is that like, unlike with the cross-chain space, like you see protocols specifically self-selecting into pieces of this puzzle. Um and I think that's a really good trend, right? Like if trying to own the entire stack just doesn't really make sense anymore in this space. There's there are so many problems to solve, and like if you try to solve all of them together, you're just not gonna do an effective job. So for us, we are now specifically focused only on clearing. And like we are delegating this process of like, okay, how are you going to get a message across chains to the transport protocols that sit underneath? Things like hyperlane, things like layer zero, Axelar, Wormball, et cetera.

Okay, thank you. Easy. Thank you, everyone.

Related talks