A special mid-week episode is in order as we discus the string of events that led to one of the largest risks DeFi has faced in a long time. What happened to Curve, what's at risk, and what can we learn from all of this?
*CORRECTION: The address that exploited the CRV/ETH pool controls .082% of the circulating supply, not the 8% accidentally mentioned in this segment. ------ 🚀Join Ryan & David at Permissionless II in September. https://bankless.cc/GoToPermissionless
------ 📣 STADER LABS | ETHX LIQUID STAKING https://bankless.cc/Stader
------ BANKLESS SPONSOR TOOLS:
🐙KRAKEN | MOST-TRUSTED CRYPTO EXCHANGE https://k.xyz/bankless-pod-q2
🦊METAMASK PORTFOLIO | MANAGE YOUR WEB3 EVERYTHING https://bankless.cc/MetaMask
⚖️ ARBITRUM | SCALING ETHEREUM https://bankless.cc/Arbitrum
🛞MANTLE | MODULAR LAYER 2 NETWORK https://bankless.cc/Mantle
👾POLYGON | VALUE LAYER OF THE INTERNET https://polygon.technology/roadmap
🗣️TOKU | CRYPTO EMPLOYMENT SOLUTION https://bankless.cc/Toku ------ TIMESTAMPS
0:00 Intro 7:23 EVM Exploit Explained 13:21 MEV Bot Sidequest 18:21 CRV Contagion 23:43 CORRECTION: SEE SHOWNOTES* 31:43 The OTC Bailout 35:43 Buying Mansions On Leverage 41:43 Second Order Risks 47:43 Who is to Blame? 53:43 Are we in the Clear? 56:43 Lessons Learned 1:01:43 Risks and Disclaimers ------ RESOURCES
DeFi's Contagion Curveball https://www.bankless.com/defi-contagion-curveball
------ Not financial or tax advice. This channel is strictly educational and is not investment advice or a solicitation to buy or sell any assets or to make any financial decisions. This video 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. Additionally, the Bankless writers hold crypto assets. See our investment disclosures here: https://www.bankless.com/disclosures
No summary for this episode yet.
you Thank you. Can you give us the TLDR of what we're going to cover in today's episode? Yeah, so there has been a series of events, which of all, one has led to another. There is a coding language called Viper, which is an alternative to Solidity. So it is an Ethereum coding language that had an exploit in the actual coding language that affected a certain number of DeFi protocols across Ethereum, especially and most importantly, Curve. Curve, which is a systemic, I would call it a systemically important DeFi protocol, has had some very important pools, Curve pools drained. And that has led and put pressure on the CRV token specifically because the founder of Curve, Michael, has put up a bunch of CRV tokens as collateral across DeFi.
So just to recap, a coding language had an exploit in it, which led to Curve liquidations. And because the founder of Curve had so much CRV tokens as collateral across lending protocols, we are potentially on the cusp of a liquidation, cascading liquidations of the CRV token across DeFi, which might put holes into the balance sheets of many of these DeFi lending protocols. Did you catch that? I did. And I'm so glad. We called David down from the mountains in order to help us with this episode, David. I'm so glad you're back. I think what we're trying to do in today's episode is just unpack this story and let folks know as well that it's still developing.
So we'll have more things to talk about. But really, in bankless fashion, we want to talk about what just happened in the events in order to learn from this, in order to level up on crypto. So we're going to discuss what happened, what's currently at risk right now. You might be wondering, are my assets safe? Is this a systemic issue for all of DeFi? How scared should I be? And then finally, what we can learn. I think that's the flow of this episode. So David, you want to say anything else before we get ready to get in here? Yeah, just a few more bits about Curve and why it's so important. I would say Curve is kind of a yin to a yang of Uniswap, perhaps, but it's specifically meant for trading like-kind assets.
So stable coins trade with stable coins. Ether trades with other versions of synthetic ether. And so like staked ether trades with rocket pool ether. Or Alchemix ether, which is one of the pool strains, is traded with uh you know ether so like kind assets is what curve is really meant for and it's just a huge huge amount of defi built on top of it tvl in curve total value locked in curve was 3.2 trillion up to the point of a billion billion billion excuse me billion trillions different number one cycle 3.2 billion down to 1.7 billion so it takes like a 30 percent haircut in the tvl Part of that is because the hacker stole money, but really most of it is that people kind of flee from this.
And so we'll probably watch some of that TVL return. But the total sum of all of the assets stolen by this exploit is about $70 million. dollars, but 20 ish million dollars of the stolen money was taken back by a white hat MEV bots, which is another very interesting part of this story. So the hacker has gotten his stolen assets stolen from them and some white hat MEV bots have returned some capital to some pools. So we have to unpack that as well. And so this is going to be, there's a number of different rabbit holes to go down around this particular topic. And we're going to try and take our time to point towards each individual one.
Yeah, there's so much to talk about. And yes, what you need to know at the outset of this is Curve is a very important protocol in all of DeFi, I would say systemically important, and it certainly got a bullet wound here. So we're going to explore all of that. Guys, we'll be right back with the episode to walk you through everything that happened, what this means moving forward. And to answer the question, is DeFi safe? Are we going to make it But before we do, we want to thank the sponsors that made this episode possible, including Kraken, which is the absolute best way to onboard into crypto.
Go create an account. Are you a MetaMask user? Well, you're listening to Bankless, so of course you are. The wallet you know and love just got a whole lot better. MetaMask Portfolio is the ultimate one-stop shop for all of your crypto needs. It gives you a holistic view of your crypto portfolio across multiple chains and multiple addresses all at once. You can easily view and manage all your coins, tokens, and NFTs in one convenient place just by connecting your wallet. Metamask Portfolio goes beyond just viewing your portfolio, though. Inside the portfolio, you can do all the incredible money verbs that make DeFi so powerful.
You can buy, swap, bridge, and stake your crypto assets with ease. It's like having a powerful battle station for all your DeFi moves right at your fingertips. So if you're looking to do more in Web3 your way, Metamask Portfolio is the answer. I already know that you have a Metamask wallet, so go check out your Metamask Portfolio. Learn more at metamask.io slash portfolio. one of the biggest DAO-owned treasuries, which is seeding an ecosystem of projects from all around the Web3 space for Mantle. Mantle already has sub-communities from around Web3 onboarded, like Game7 for Web3 gaming and Bybit for TVL and liquidity and on-ramps.
So if you want to build on the Mantle network, Mantle is offering a grants program that provides milestone-based funding to promising projects that help expand, secure, and decentralize Mantle. If you want to get started working with the first DAO-led Layer 2 ecosystem, check out Mantle at mantle.xyz and follow them on Twitter at Zero X Mantle. Arbitrum is accelerating the Web3 landscape with a suite of secure Ethereum scaling solutions. Hundreds of projects have already deployed onto Arbitrum One with a flourishing DeFi and NFT ecosystem. Arbitrum Nova is quickly becoming a Web3 gaming hub and social dApps like Reddit are also calling Arbitrum home.
And now Arbitrum Orbit allows you to use Arbitrum's secure scaling technology to build your own Layer 3, giving you access to interoperable, customizable permissions with dedicated throughput. All of these technologies leverage the security and decentralization of Ethereum and provide a builder experience that's intuitive, familiar, and fully EVM compatible. Faster transaction speeds and significantly lower gas fees. Arbitrum empowers you to explore and build without compromise. Visit arbitrum.io where you can join the community, dive into the developer docs, bridge your assets, and start building your first app on Arbitrum.
And we're back. Bankless Nation, when you hear the words EVM compiler reveals a zero day vulnerability, it's not a good day. No, that's not scary. That's scary. That's a very deep part of the tech stack. And so there's something that actually we need to define before we move on here. There's a specific kind of vulnerability here, and this is called a re-entrancy attack. This is actually, re-entrancy attack is actually how the DAO hack got hacked. And so a re-entrancy, it's a very specific type of exploit. It's when a contract is checking to see the account balance of something, of someone, of some asset, but the attacker is able to actually execute something before the contracts are able to finish checking the state of something.
And so it's like you are able to remove cash from the vending machine. And then before you finish the transaction, you actually just keep on pressing, hey, withdraw my money. Hey, withdraw my money. Hey, withdraw my money. And so you re-enter, I'm doing my best as a non-dev. This is really good, honestly. You re-enter the same, like, hey, you owe me $15. Hey, you owe me $15. Hey, you owe me $15. And before you finish processing the transaction, you just say, hey, withdraw my $15, you know, 5,000 times. And then you finish the transaction and $15 turns into, you know, 70 million. That vending machine analogy is working for me.
Like just like the mental imagery. So, you know, you press D five or whatever, and you got your Snickers bar, but now you can keep hammering on that and that before the vending machine delivers you the Snickers bar, you keep on saying, give me a Snickers bar and then you do it unlimited times and limited times. Yeah. So that's a very simple like reentrancy attack. That's how the Dow hack got got hacked. And sadly, because in the Viper language, the coding language that this vulnerability was expressed forgot did not have the appropriate checks. Reentry reentrancy checks. So that's a very deep level of like why this is all happening to begin with.
Just really quick on Viper though. Okay. So it's an alternative to Solidity. It's much less used compared to Solidity. And so I'm not a developer, so someone come correct me. But my understanding is Solidity is a bit more like JavaScript-ish. Like, and whereas Viper is Python, right? So it's kind of like Python derived. And so it's a different language. It was supposed to be more simple, a bit more functional, But it hasn't had a lot of adoption, but it does in some pockets, including in Curve, what we're about to talk about. Yeah, so we're looking at a tweet thread here from Bankless HQ, our analyst, Jack, who just did a bang-up job really just covering all of this.
And so if you want to read the tweet thread or also the newsletter, these are also fantastic sources. You can also read the Viper tweet broadcasting the reentrancy vulnerability in the next tweet, Ryan, the next tab that you got, or that one as well. Yeah. And so Viper language Twitter account says Viper versions point to 15, 16 and three are vulnerable to malfunctioning reentrancy locks. The investigation is ongoing, but any project relying on these versions should immediately reach out to us. The project, of course, in question is Curve, as we said in the beginning. And so I think we've done a pretty good job explaining what Curve is.
But it is, to put it into a metaphor, the marketplace for like kind assets. It is a place where Tether gets turned into DAI, where DAI gets turned into USDC, where USDC gets turned into any other stablecoin. And so not all curve pools were coded in Viper, only a certain number of them. And the curve pools that were coded in Viper have all been exploited by this one exploit. So a handful of contracts, all for ETH pairs. and and so there are uh one two three four pools that got exploited p eth with eth pair uh ms eth with eth al eth from alchemix and so this is pendle eth uh i can't remember what ms is it'll metronome uh alchemix and then also the curve eth pair itself which is the curve dow and so pendle eth that is uh got drained for 6 000 ether that's 11 million dollars uh alchemix eth got drained for 1.
6 million of ether and then 1.8 million of uh metronome eth excuse me not alchemix metronome metronome alchemix got drained for 7200 oof ether which is 13.6 million and then 4.8 thousand ether of alchemix ether which is 9 million and then the curve eth pool which is the source of all of this further contagion got drained for 7,200 CRV tokens, which is $5.1 million at the time of exploit. You can imagine that this Curve token has gone down in price since, as well as 7,700 wrapped Ether out of the Curve DAO, and then also 2,800 more Ether. So if you sum it all together, it's about $70 million. That $70 million came, like I said, from four different protocols, one of them being Curve.
But it's really the source of this contagion and why this is getting into a bigger and bigger story is that 7.2 million Curve tokens that got taken out of the Curve Ether pool and is now in the hands of the attacker. And so that is the recap of the assets that has been stolen out of Curve. Okay, so we'll talk about sort of why this matters and where we are right now, because this does have some wider implications that's kind of spreading to other protocols here. We'll talk about that. But a quick side quest on how this actually works in practice. So my understanding, David, is that some MEV bots captured some of the exploited funds here in the process, right?
And maybe you can kind of explain how block building works and how this actually works. I was talking to some people who are staking in RocketPool, for instance, some very large, call execution layer fees, right? Some MEV fees were, not donated, that's the wrong word, were awarded to the RocketPool community, essentially, as a result of this. The RocketPool protocol processed the block that had a significant number of MEV bots bidding for some of the exploited funds. exactly rocket pool just happened to process the block therefore a lot of these stolen funds turned into mev and then got you know turned into rewards for rocket pool and a few others but rocket pool has like that's where kind of the conversation is because well what does rocket pool do with the funds like well and what does it do it basically spreads all of that those mev proceeds across all of the individuals yeah so a lot of stolen funds just got sprinkled out to individual rocket pool stakers.
Which is interesting. And I think a quick side quest here. Well, here's another one. So one MEV bot, it wasn't just Rocketpool. This is an MEV bot called coffeebabe.eth, actually returned some of the money from the exploit. So it returned $5.4 million. So if you're an individual staker, right, and this is kind of like a lottery system. So it's a bit of random chance as to whether you'll get this reward in kind of the execution layer reward in MEV or not. But if you just suddenly receive $5.4 million worth of ETH in ill-gotten gains, the question is, what do you do with it? Is it finders keepers, losers weepers?
Did you just find like, oh, I found $20 on the floor? I mean, you can't be like, hey, does anyone own this if you find that out in public? But in this case, you actually kind of know who owns the money. You could trace it. So what do you do? Do you refund it? So I think it depends on the context, right? When we talk about Rocketpool, and we're taking a very early rabbit hole down this one topic before getting into the rest of the contagion event. So this is definitely a side quest, but this is just what happens so early in these cascade of events. Coffeebabe.eth. Actually, I need to check this if this is true, Ryan, but coffee, the coffee, babe, ETH front ran created an MEV bot after the first CRV ether liquidation in the time that the, and another, uh, reentrancy attack was going to happen again.
But the second time that the hacker tried to steal funds, I don't know why they're there, what they didn't just do it all from the first, from the first, um, uh, exploit, like why didn't they steal a hundred percent of it? Some funds might have come in from bots. There's a bunch of extra questions here. There's a lot of dust to be settled. But in the time that the exploiter decided to attack the CRV ETH pool again, coffeebabe.eth coded up a MEV bot and front ran that second and then also third exploits. And so in that second exploit, coffeebabe.eth front ran the exploiter and got 2,879 Ether that was drained from the Curve Ether pool again.
And then that is now being returned to the curve deployer address, which is going to be able to actually determine where the right destination of that ETH goes. But that's just because this one person figured out a way to code up this MEV bot, take responsibility and control over stolen assets and stole money from a thief to return it back to the rightful owners. But when it goes back to like, okay, what about a decentralized system like RocketPool? Like these are all interesting questions as to how to actually contend with some of these things. Yeah. So I guess in this case, the Coffee Babe case, it's a bit more white hacky in that like they just exploited something the exploiter was exploiting.
And then so they refunded the funds. And that to me is much more, I guess, morally clear. What's less clear is the case where you have this big MEV reward and it's distributed across the pool of, say, stakers. Right. Like what do you do? Do you actually practice? And so what's in the future with MEV burn, this would not have been able to happen. That's the thing. That's kind of the punchline. I think that that is important here because what I'm worried about, David, is I don't know if you've seen some MECA legislation that came down the bike last week, but there was some MECA legislation that basically would make it illegal to benefit from MEV of this kind, like the unethical style of MEV.
And I get worried about that when that sort of thing is settled in meat space, because then we go down this path of, well, do all validators have to be like checked by the state, AML, KYC? Like how does the nation state actually enforce that because the protocol level's not? Anyway, it's an interesting side quest, but I agree with you that the best solution here is probably MEV burn because then at least it's credibly neutral and we sort of socialize these proceeds over all ETH holders. I guess, you know, we're socializing the guilt there. I mean, I would still put a white hat hacker ahead of that because just because we're burning it It doesn't mean we are okay with people having their money stolen.
Agreed. Well, so let's get back to the main event. So what tweet are we looking at here? Okay, so this is Taylor Monahan, who we actually just did a Twitter space with, talking about some of the white hackers and just giving praise at coffeebabe.eth. Truly a babe. But we need to get into the contagion event that is around CRV. because as soon as CRV is sold, first, there's not that much liquidity right now. I don't know if you notice prices, Ryan, but as bullish as we are, we're still in the bear market. So liquidity is already thin. And then when the CRV Ether pool of where CRV gets its liquidity gets exploited, you would imagine that liquidity goes, A, for that reason, and then B, because anyone else also supplying liquidity to Curve token around DeFi get scared of getting dumped on.
So they withdraw their liquidity. So now we're at the point of the story where the contagion is kind of surrounding Curve the token, right? CRV the token. Yes, exactly. And so CRV the token liquidity starts to drain. We accidentally see a flash crash of Curve down to about 10 cents from 70 cents. And so inside of a very small period of time curve went from 70 to 10 cents and then back up to 60 cents pretty quickly pretty quickly without liquidating curve collateral across various defy lending protocols but you can see how i mean i remember terra luna i i remember how how and then the curve is not terrible ever forget but you we all remember how like liquidity just drained very quickly of surrounding uh surrounding these assets when it needed it the most and so people fled for the hills and all of a sudden curve the token is in a very precarious position where it doesn't take that much sell pressure to push that price down.
Now, that wouldn't be bad. Tokens are allowed to go down in price. That's a normal thing to happen. This is what we do in DeFi. Things go up in price, things go down in price. But that's just not where the story ends, sadly. And so the Curve Exploiter, as a result of the Curve Pool, the Ether Curve Pool, currently holds 8% of the circulating supply of CRV. And so that is about 7 million curve tokens that we can see in the exploiter's wallet. That's a lot of curve. 8% of the total circulating supply is a lot of curve, especially when the hacker is capable of pressing a button and market dumping that thing.
And also simultaneously, liquidity providers stop providing liquidity because they don't want to be dumped on. And so all of a sudden liquidity dries up. And so this is setting up the dominoes. The dominoes are currently set up for a bad event in Curve tokens. And we haven't even gotten to all of the collateralized CRV positions across DeFi, but you can guess where we go next. Well, let's just park that for one second. So this was the exploiter's wallet, the hacker's wallet, as of the 31st, so July 31st. And by the way, all this happened, I believe, earlier in the week, it was a bloody Sunday or bloody Monday, depending on your time zone, August 30th or August 31st.
And so the state of the hackers wallet at this point in time was all of the curve tokens that you were talking about, 8% of the circulating supply, and also a whole lot of Ether as well. So about $14 million worth of Ether. What's crazy about this, and I know I don't have to emphasize this for longtime crypto natives and bankless listeners, but we are witnessing, yet again, a bank heist play out in real time on the internet. and we get to see it unfold step by step. And I just want to pause and reflect on how crazy is that, that all of this is public and the on-chain sleuths can track every single transaction here and we actually see the address of the exploiter and we can see every single move that this person is making in real time.
That to me is just, we'll never not be crazy. But yeah, that's what's happening here. Yeah, this is what the blockchain provides, right? Like global eyes are all watching the same addresses and the same contracts. There is currently a game going on right now around CRV. People that own CRV before, you know, traders, DeFi, DeFi people who play the DeFi game. A lot of people are watching the current state of CRV because if it's been two days, the Curve exploiter has not made a transaction in two days. but that i mean curve is one button press away from basically being nuked to zero so liquidity is currently kind of like resettling itself around people are there's a new equilibrium being established but this exploiter has you know and they have seven eight percent of all curve supply token of the curve supply so it's a precarious position to be in and like i said we haven't even gotten to all the defi lending protocols that are out there so let's talk about that next.
And this is where sort of the founder of Curve kind of enters as a main character here. The founder, Michael, his last name starts with an E. I won't pronounce it correctly. Igorov. Yes. And so Michael owns 48% of the circulating supply of Curve. So this is very heavy michael has very heavy curve he hasn't sold yeah hasn't sold i guess maybe bullish for maybe a four seller but he has been doing something with all of those curve tokens and the thing that he has been doing with again almost 50 of the supply of this not very liquid token right there's a lot of it yeah uh he's been lending that out or sorry excuse me he's been borrowing against that with lending and borrowing protocols.
And here's a list of them here. In Aave, there's about 34% of that. I'm not sure how much amount of Curve. It's about, so the round numbers, think about Curve is about 50 cents a token right now. So $150 million in Aave V2, about $25 million in Abracadabra, $20 million in inverse finance, $12.5 million in inverse finance, excuse me 20 million dollars in frax land uh and then you know 1.6 million dollars in staked out and 1.2 million dollars in silo like everywhere that curve is accepted as collateral this guy michael michael michael what are you doing bro well let's so let's talk about that 48 of the circulating supply is not just in the hands of michael the founder of curve it is also deposited as collateral in lending protocols everywhere this guy is levered to the tits dude well we don't know well actually i think we know pretty conclusively because okay let's recap what what um a collateralized loan actually is i don't know david if you've ever been djain enough to actually take out a collateralized loan with a heavily volatile asset oh you are So you've been in the situation where you're looking at your liquidation number for the price of something.
Let's call it Ether, right? And you have a lot of your Ether locked in collateral, right? So that's what the lending protocol essentially does is you can deposit some asset. In this case, it's Curve, but you could deposit Ether. And then what do you get in return? You get some stable coins, let's say. So maybe it's DAI or maybe it's something else in the Aave protocol. And what do you do with those stable coins, right? Oh, you just put that somewhere else in treasury bills, right? It's free money, right? It's free money. You can buy whatever you want. No, I mean, you don't do the responsible thing generally with these stable coins, which might be like park them in T-bills and earn an interest.
Or I don't even know if that makes sense. It would depend on kind of the amount that you're paying for it. You're probably buying something in real life. You're probably betting on other tokens. maybe you're so bullish on ETH that you take a loan against your ETH in order to buy more ETH I don't know if I'm talking to anyone in the bankless audience I don't know I don't know a single person who does this behavior I don't know a single one dude this won't be any of my friends David this almost wrecked me like legitimately you know you have the reputation of being like gas and I'm like more bricks okay old Ryan uh-uh man I old Ryan was gas this felt this felt very like breaksy to me but like i had a um a number oh do you remember when ether was above a thousand back in 2019 sorry back in back in 2017 2018 yes right yeah yeah i had a number i was like there's no way ether could drop below 100 right ether just hit 1400 how could it ever touch 100 couldn't do that couldn't be so so you could take out a responsible loan in a um like lending protocol that was maybe double digits and that was responsible let me tell you uh the the the crypto the night ether went down into the 80s your boy was almost liquidated hard that day all right and so like we got wait did you do it did you have it like a compartmentalized trading account or was it like your main stack you know i'm not going to get into the details here on today's episode.
But yeah, we've got a take that talks about this from Van Spencer later on the show. Let's talk about that later. So anyway, so you've got to imagine Michael here, the founder is absolutely like sweating because the value of his curve is going down. He's got a liquidation number right here. And then also the interest rates are going up. That's kind of the context here as we talk through the rest of these details. Yeah, no, that's right. And so on ave is the big one so on ave michael has 305 million curve tokens backing a 63.2 million dollar usdt loan that's tether and so the in the ave protocol there there are liquidation parameters for any single collateral like ether gives favorable liquidation parameters because there's no like there's no smart contract risk it's very liquid uh curve doesn't have nearly as favorable parameters around uh the the liquidation thresholds inside of ave and so he gets a 55 loan to value like margin uh and so 305 million dollars of curve backing a 63 million dollar loan uh and so you know that's pretty healthy but you only you know you only get 55 of that uh and so that you know turns into if a curve price drops about 33 percent uh he would be liquidated and then he's also paying four percent APY and that is before curve got exploited and so went uh once all of a sudden people realize that curve the token is at risk of going to zero because there is not enough liquidity in the market to absorb a market cell from the exploiter people realize that lending um that lending stable coins to any of the marketplaces that has Curve as collateral is risky because all of these lending protocols might have bad debt.
If Curve goes to zero and all of the Curve tokens get liquidated, but that's not enough to cover the hole, then all of a sudden stablecoin suppliers are left holding the bag if the protocol cannot cover the difference. And so what happened? What does the rational economic actor do in this scenario? Well, they stopped taking the risk. They're saying like, hey, they're not going to take the 4% to 10% APY when they might lose 50% in the next day or so. So they start withdrawing. And so what happens when a DeFi lending protocol has stablecoins withdrawn from it, the utilization ratio goes up as in more and more of a percentage of these stablecoins that are lent to these protocols are actually already being borrowed.
And so this is a natural way for uh these you know ave money market type systems to naturally balance in uh themselves when there's not many stable coins there's insufficient supply of stable coins lent to the protocol and more people are borrowing them than supplying them it just jacks up the interest rates and so here's delphi digital's tweet at 100 utilization which is for tether uh which it currently is at all tether all tether tokens all usdt supply to ave is being borrowed by michael and and others because all the usct lenders are like oh no i'm getting out so at 100 utilization the interest rate doubles every 12 hours the current payment that you pay for borrowing tether from ave is 81 percent and that can increase to a maximum of 10 000 apy after just 3.
5 days so basically you're like michael's got a date with destiny he's going to get liquidated uh at this current rate because the the interest rates are just accruing up to his point too fast unless there's a hope david unless he can continue paying unless he can pay the interest and stay ahead of it right keep just staying ahead of it as the industry he needs to pay down his he needs to sell curve and for tether and pay back his loans that's what he needs to do that's hard when the price is dropping right yes especially when the price is dropping yes so but this is what he did actually so he was able to sell um some of his loans uh this tweet doesn't have it specifically uh we'll get there's another tweet we have later in this agenda but um he otc's a bunch of curve and he paid he gets about um 16 million dollars yes here we go so sandra is an account that that apparently covers OTC trades.
And so here are some curve movements from Michael to other people at 17.5 million curve to an unknown address, 5 million curves sold to Justin Sun. So Justin Sun coming into bid 4.25 million curve to DCF God, 2.5 million curves sold, 2.5 million curves sold. So buyers are stepping in and buying curve. We do not know the price that they were sold for. Ignis, DeFi researcher, I think does a pretty good job, hypothesized about 4 cents a token. And with the current Curve price of about, I think, 55 cents, if you want to pull up CoinGecko for Curve, that's a pretty hefty discount, 58 cents. So you can go to Curve or Uniswap or wherever CRV is sold right now in the market and buy a Curve token for 58 cents.
Not financial advice. Not financial advice. I'm saying this is just what the market is offering. This is just what the market is offering you. So there's speculation that the OTC trades for a very large amount of Curve tokens. He was getting about 40 cents per token. And that's just because, you know, if he had sold these tokens on the open market, he would have gotten probably a worse rate than that. So, again, you're Michael. You don't want to get liquidated, right, at a very low price. So what are you trying to do? You're just trying to stay a step ahead and you're trying to, like, ideally pay down those loans in order to free your money.
So what are you doing? You're getting funds from other sources off-chain, basically. Right. So Justin's son coming in with like a $3 million check and buying some Curve tokens, OTC. That just means over-the-counter. It's just like a private telegram group or something where Michael's like, hey, Justin, you want to buy some Curve? And he's like, what will you give me? And then Justin's like, I'll give you, or Michael's like, I'll give you this rate. And, you know, Justin, I'm sure has some provisions. That's what's happening in order for Michael to kind of raise these funds. Yep, that's exactly right.
And so raising about $16 million. dollars uh and so remember remember he's got enough he's got an outstanding debt of 110 million dollars pledged against uh 290 million dollars of curve tokens uh that's before curb rent down price so he owes 110 million dollars and he just raised 16 million dollars that's not that's not a lot that's not a lot man he needs a little bit more margin than that you know ironically okay so this is advanced spencer take that i was talking about earlier defending your liquidation price on chain is a religious experience call god oh god that hits man that's that hits i have been there i have done that before so uh so this is michael ironically i don't mean to kick a guy when he's down but this is just too good july 22nd how many days ago was that 10 days ago still haven't still shocked that i haven't yet been affected by defy hacks oh shit that's unfortunate man uh yeah i mean but i guess there's an element of uh you know it is it is kind of shocking but now it's happening wow you can never count your chickens here yeah uh okay so this individual lives in australia uh and there's a there's a few australian defy protocol founders who are also i don't know if they directly are but they imply that it's kind of funny it's a funny meme on crypto twitter that they just have these like mansion comparison fight fight like mansion offs if you will michael yes michael has not one but two mega mansions in melbourne australia not too far away from our good friend anthony cesano anthony so not does not have a mansion um i know that i know of not the one i've been invited to uh he bought this is actually this picture that these two pictures that we're seeing at is actually the same mansion from different angles i don't know where the other one is um this one he bought for 40 million dollars this is for the bankless listeners who are not watching the youtube an insane house an insane property we're looking three three it's kind of nice yeah we're looking at three stories it's got to be like it could be like a 10 bedroom kind of thing there's a pool there's like a guard it's it's that is a mansion and a half let me just say we don't know the particular circumstances for michael he could have been like made his investment money elsewhere he could have like um bought bitcoin you know back in 2010 the proceeds but one has to wonder if some of the stable coins that he withdrew borrowed borrowed against his curve went to fund in real life things well ryan he bought this house two months ago and he currently borrowed 110 million dollars to buy a 40 million dollar mansion i don't know if it was directly i put up money inside of ave i withdraw stable coins send it to my bank account and buy a house with that money i don't know if it's that clear but when you buy a 40 million dollar house with 150 million dollars of stable coins borrowed that factors into your decision making at some point in time i think so as well at least i can say that factored into my decision making.
And again, like not knowing, you know, Michael's particular situation, it's impossible to fully weigh in on it. But why would someone do this, right? Like one reason to do this is you don't have to sell your Curve tokens. There might not be liquidity if he owns 50% of the Curve market, right? And if you were to just like sell even 5% of that, it's going to tank price for a while, right? So why sell your Curve token if you're bullish on the project, you're kind of the founder, when you can lend it essentially in a protocol, and you have a liquidation price, you know, kind of the, you know, the minimum amount you'll make from it.
That's one reason you might want to do that rather than just kind of market sell in order to buy your in real life stuff or like, you know, get get some money out of the system. The other reason you might do it is to avoid capital gains taxes, is what wealthy people like have been doing for all the time, rather than sell your actual asset, you just get a loan against that asset, to borrow against that asset, you don't have a capital gains tax event, and then you can go do whatever you want with the proceeds. That might be another reason. Impossible to speculate. But one thing I will say at this point in time is the lesson is, you guys ready for it?
Don't use leverage. All right? Like, this is a very bad position to be in. It seems very clear that Michael does not have the liquid cash in order to pay down his loans or else he would. I'm sure he's sweating. this could happen to you, bankless listener, if you kind of play these games with volatile assets. So that is one lesson certainly we can take away from this. But there are definitely other lessons. On the whole leverage piece, leverage is a tool. It requires, you really need to be thoughtful and intentful when you use it and why you're using it. The mistake, like to not like leverage is a tool so like can you use leverage of course you can when you use leverage with your entire stack you don't give yourself any margin for error because you have no more bullets left and so when you use all your money and then you leverage all your money you got nothing you have you have no tolerance and so the thing that michael did not account for when he was making his economic decisions like granted like he didn't he didn't account for curve getting exploited he didn't account for a re-entrancy hack and viper and that's why we're here today but i mean he didn't have any margin for error for any sort of event like this whatsoever because he leveraged up his entire stuff i mean i will say someone made the point that this could have been intentional and that there's like a um uh there's like a perverse incentive going on here too because what you can do in a way is is if you are a um you have a large uh you know amount of some particular token, you get a loan against it, you sort of set your sell price as kind of a liquidation price, basically.
And, you know, if you kind of go under, there's an element of you can socialize your losses to that protocol. So like, some have pointed out that this is actually a incentive mismatch at play, where like, hey, you know, should someone be able to kind of do this in this type of scenario. There's like a founder could just, rather than sell their tokens, take out a loan against it. And then who's the bag holder at the end of the day? Well, we'll get to that later, but maybe some of these protocols, maybe Aave gets a haircut. And so it's Aave token holders, rather than Michael in this case. I see a little bit of that, but at the same time, that is what the protocol is supposed to do.
That's what, if you're a lending and borrowing protocol, you're supposed to manage risk appropriate in these types of scenarios. So, okay. So moving on in the story, one of the things that's going on right now is that all of these lending protocols are realizing that they are in a precarious position for exactly what you said, right? If curve gets market sold, then all of these lending protocols have bad debt. And so what are these lending protocols doing? Well, Frax, Aave, they're all naturally increasing the interest rates at which they are charging Michael. And so interest rates are going up.
Another interesting thing about this story, Ryan, is that Aave not too long ago had a governance proposal submitted from Gauntlet. And Gauntlet does exactly this kind of thing. It does economic modeling on chain. So it tells you about potential black swan risk events due to the parameters of liquidity for particular assets. Just in June 18th of this year, not too long ago, Gauntlet said, they hey gave he needs to free crv and uh and jack up the risk parameters uh around crv because the on-chain liquidity does not bode well for any sort of it's a precarious position and gauntlet identified this a month ago it's too risky exactly yeah and this was actually struck down uh 100 to zero uh by ave governance wow and so gauntlet said hey just like just you know not even 12 days ago, 12, 20, 14 days ago, two weeks ago, Gauntlet was like, hey, these curve parameters are all whack.
They need to be fixed. We need to shut down this market. And Aave was like, Aave governance was like, nah. And it was because there's a single, they say this, the motivation, looking at the risk profile of this address, I assume this is Michael's address. This one account has borrowed roughly $63 million. Oh, yeah, that's Michael. $190 million of CRV. We recommend, yeah, to one, freeze CRV collateral and they basically, oh, they're recommending to free CRV collateral and set the curve LTV to zero is what they recommended back then. That's interesting. Okay, so actually, so I'm just learning this right now.
In this post, Gauntlet says, as of June 13th, this account, Michael, has borrowed 63 tether, a million dollars of tether against 190. So I didn't realize how recent this was. But again, of course, recently, just a few months ago, he bought the house. And so and then the Viper exploit happens. Wow. Right. Wow. Well, this is what the this is why it's kind of hard to govern lending and borrowing protocols, isn't it? This is kind of the squishy role where you have to like assess the risk of a particular asset before you let it into the lending and borrowing protocol and set kind of your threshold for how much can be borrowed against it and how much you're willing to lend.
Right. And that's what's happening on these these governance forms, because if you get it wrong, what's the cost? Well, your protocol, your token has to essentially absorb that somehow. Right. You know, if you have kind of an insurance type of side pocket. So you're the one getting a haircut from that. So it's interesting that this was updated so close to the event. I'm sure people would wish they could change their vote. But can't happen. A little bit late now. All right. So there's a few more topics that we have coming up in the rest of the show. We have this protocol game of chicken that we need to talk about.
Ryan and I are going to unpack what's really at risk here. Like what happens like in theory, what would happen if there is a cascading liquidation event, what happens if Michael does get liquidated? Uh, what happens to that? Is there a systemic risk in DeFi? And then we've got some takes in what we are going to be able to pull out as learning lessons from this event. So all that is coming up right after we talk to some of these fantastic sponsors that make this show possible, especially MetaMask and MetaMask brand new feature, MetaMask portfolio, which can give you the lay of the land for all of your collateralized positions that maybe you should keep a better eye on as we go into this bull market.
Let's go hear from MetaMask right now. Are you a MetaMask user? Well, you're listening to Bankless, so of course you are. The wallet you know and love just got a whole lot better. MetaMask portfolio is the ultimate one-stop shop for all of your crypto needs. It gives you a holistic view of your crypto portfolio across multiple chains and multiple addresses all at once. You can easily view and manage all your coins, tokens, and NFTs in one convenient place just by connecting your wallet. Metamask Portfolio goes beyond just viewing your portfolio though. Inside the portfolio, you can do all the incredible money verbs that make DeFi so powerful.
You can buy, swap, bridge, and stake your crypto assets with ease. It's like having a powerful battle station for all your DeFi moves right at your fingertips. So if you're looking to do more in Web3 your way, Metamask Portfolio is the answer. I already know that you have a Metamask wallet, so go check out your Metamask Portfolio. Learn more at metamask.io slash portfolio. Mantle, formerly known as BitDAO, is the first DAO-led Web3 ecosystem, all built on top of Mantle's first core product, the Mantle Network, a brand new high-performance Ethereum Layer 2 built using the OP stack, but uses Eigenlayer's data availability solution instead of the expensive Ethereum Layer 1.
Not only does this reduce Mantle Network's gas fees by 80%, but it also reduces gas fee volatility, providing a more stable foundation for Mantle's applications. The Mantle treasury is one of the biggest DAO-owned treasuries, which is seeding an ecosystem of projects from all around the Web3 space for Mantle. Mantle already has sub-communities from around Web3 onboarded, like Game7 for Web3 gaming and Bybit for TVL and liquidity and on-ramps. So if you want to build on the Mantle network, Mantle is offering a grants program that provides milestone-based funding to promising projects that help expand, secure, and decentralize Mantle.
If you want to get started working with the first DAO-led Layer 2 ecosystem, check out Mantle at Mantle.xyz and follow them on Twitter at 0xMantle. Arbitrum is accelerating the Web3 landscape with a suite of secure Ethereum scaling solutions. Hundreds of projects have already deployed onto Arbitrum One with a flourishing DeFi and NFT ecosystem. Arbitrum Nova is quickly becoming a Web3 gaming hub, and social dApps like Reddit are also calling Arbitrum home. And now, Arbitrum Orbit allows you to use Arbitrum's secure scaling technology to build your own Layer 3, giving you access to interoperable, customizable permissions with dedicated throughput.
All of these technologies leverage the security and decentralization of Ethereum and provide a builder experience that's intuitive, familiar, and fully EVM compatible. Faster transaction speeds and significantly lower gas fees. Arbitrum empowers you to explore and build without compromise. Visit arbitrum.io where you can join the community, dive into the developer docs, bridge your assets, and start building your first app on Arbitrum. One of the big parallels, Ryan, that I think I remember after covering the Three Arrows Capital liquidation was that a very low number of people can actually be the reason of systemic contagion in crypto.
Remember when Three Arrows Capital was getting liquidated, they were doing whatever they can, pulling out all the stops to borrow as much money from different corners of the crypto ecosystem as possible. And that's how Voyager, BlockFi, any lender that would lend money to Three Arrows Capital all got effed. because three-year capital was the contagion. And so I actually see a similar pattern. That's one of the big learning lessons between that and this is Michael put Curve in every single place in DeFi that would allow him to collateralize Curve. And so now, this is how the contagion happened.
One single actor actually spread out all of the contagion and because of the weakness in the Curve, all of a sudden, this is how contagion works. Ave, for example, where the biggest loan position is, actually does have an insurance fund. And so they have this safety module, which grows and grows and grows from fees collected by the Aave DAO. So there's $327 million in the Aave safety module, which is actually more than enough to pay for any sort of hole that Michael may leave in Aave. There's one problem here, which is that that safety module, $327 million, is actually denominated in Aave. So there's a little bit of reflexivity there.
And so if Aave, I think Aave, if the worst case scenario, they would have to cover like $80 million or $60 million of Curve in Aave. And so like if they were going to have to sell Aave into the market and to cover that loss, which means that the actual size of that safety module is also precarious because it's denominated in its own token. But that's one of these, another one. That's the token holder haircut. That's the token holder haircut. Yeah. That sale is going to affect the price of Aave. Yeah. Yeah, same exact mechanism is when MKR has to get sold to cover for die bad die debt which actually only happened once, which was black Thursday right during coven when you were getting the, I remember that how much was that, that was a million it wasn't that much.
It was, yeah, 12 million I think it was, but 12 million back then was actually a decent number of amount of money because we were all super broke. of crypto is broke but yeah that's the kind of the precarious nature of like using your protocol's own token as the defense as the line of defense i think that's very precarious like that's systemically um yeah that's a great point here but at least they have at least they've got it yes um i alluded to this earlier but i'll double down on it now uh because michael had a curve all over lending protocols different lending protocols are all realizing that they need to get paid back first or else they might not get paid back at all and so michael rushed to repay the loan on frax land first because that's where the borrowing rates were highest uh and so now naturally all the other protocols with curve collateral also want to increase the borrowing rates because they're like i mean this is this has happened they don't want to be they don't want to hold the back yeah so they're like hey we need to jack up the rate so michael pays us back first And so there's this like protocol game of chicken going around because no protocol wants to be holding the back.
And so who are these protocols? We talked about them earlier, but magic Internet money, MIM, inverse finance, siloed out and all they are all these different protocols that are all figuring out how to deal with this problem. Siloed out has for some reason is chill, says Ignis from DeFi Research. DeFi Research is what he does because the risk is isolated. That's a must be a specific design for a for a money market. um but each one of these protocol dows are like figuring out like hey we we don't want to hold the bag let's jack up the interest rates well that's a real like a moloch trap big dilemma because like we would all be better off like everyone just put the interest rates like honestly at this point like we're rooting for michael like all of d5 wants him not to get liquidated or it causes bad things at this point in time so rooting for his positions anyway and um you know but what happens is when you have this kind of prisoner's dilemma the scheme of chicken then you're consented to kind of defect first yep and the you know the faster they defect and the more they raise interest rates the more likely it is that Michael gets liquidated and so that's kind of it's kind of a bad race condition uh that's happening right now yeah so that's what's currently going on with with the amms um what else is there to talk about uh it's systemic risks to defy is there systemic risk to defy I don't think so I don't think these holes are that big where Like I have I currently have an Aave position.
It's not curved and nominated and I'm not lending stables into Aave. I'm not necessarily too worried. I don't really think I don't feel like I'm at risk. I do hold of a tokens, but I mean, I've hold them down to lower numbers than what they might go to, so I'm not particularly worried about that either. I don't think there's that much contagion. I mean, but but there's a big fog of war here. I agree. I mean, the thing affected right now, the contagion seems to be primarily focused on the CRV token itself and then everything affected. And so there's a question of like, well, you know, the contagion is kind of spread to these lending and borrowing protocols, essentially.
And it's not going to be existential, probably for any of them. But it is a haircut. It's like some pain. And the question is, well, will they look at these governance proposals a bit more carefully when they're from Gauntlet or something? And there's like one single holder with a very large portion of the lent amount. I think the answer is yes. And that is how we all level up together. But I don't, I agree with you, David. I don't think that at this point in time, this spreads systemically across all of DeFi. So that is good because the reality is this could have been a lot worse, right? Zero day Viper EVM bug, right?
Again, you said at the very beginning that those are, those are words you do not want to hear. And so we are like, we are hashtag blessed that this wasn't like far worse event at this point in time. Well, knock on wood, because it's not over. I just sent you a tweet in the Zoom chat if you want to pull that up from Delphi Digital. So this is the current, as of about 24 hours ago, yeah, 24 hours ago, this is the current positions that Michael has. So Aave, Frax, and Abracadabra, $54 million owed, $8 million owed, $14 million owed with all the different collaterals and different liquidation prices.
He's currently paying, he might have already paid off the Frax. He's currently paying 124% APY on $8 million borrowed from Frax. He's currently paying 50% APY on $54 million borrowed from Aave, and then 18% on $14 million borrowed from Abracadabra. Liquidation price, the highest one is at Aave, which is also the biggest position, at $0.37. So that is the line that Curve must stay above in order to prevent any sort of cascading liquidation. unless Michael can somehow raise more capital off-chain and pay down those loans. But $0.37 is the number to say above. What's the current price of Curve? You want to open up that coin, Gecko?
Current price of Curve, $0.58. So he has room. He's paying a lot. He's paying a lot. The chart doesn't look great, but $0.58 to $0.38, there's room there. There's a chance for sure. you can make it this is like a if he makes it you can make it wow but like this is like watching a slow motion train wreck that that actually might not happen like it's just like it looks like it's about to happen but it might not happen it might not be able to um bail this out uh rune christianson had to take care curve getting exploited risk of bad debt and liquidations in the ecosystem this might seem like it's an over moment but perhaps it's just cycles uh this cycle's black Thursday.
That's the one you were referring to. Rune would know a thing or two. He calls this maybe the last crash before the bull market with everything coming back 100x stronger. Yeah, well, there's an element to that. I think that's right. I think that could be. I like to pattern match history. I love that pattern matching. I like bull markets. Yeah, and this guy would know a thing or two about because Rune, he's the founder of MakerDAO. He was definitely paying attention when MakerDAO had its Black Thursday. Now we're having Black Sunday, Monday. Well, so let's talk about this. Let's end the episode here, David, with what do you think we learned from all of this?
What's your take on the lessons here? The biggest thing that's rattling around in my brain is, man, Curve had a lot of Lindy. That protocol was deemed safe. What do you mean, Lindy? Lindy? Lindy is, how would you explain Lindy very simply? I always like to use the example. What do you think is going to be around? what would you make a bet on and being around in a larger longer amount of time the pyramids of egypt or the white house it's clearly egypt right yeah because the white house is like a couple it's like a hundred years old in fact the first white house burned down and so it's lindy got reset very quickly uh fun fact is we're on the second white house already pyramids of egypt have been around for thousands of years so like what are you going to bet on to be around for another thousands of years the thing that's already been around for a thousand years curve had a lot of of lindy it had a lot of tvl for a very long amount of time and then it got hacked i think this might set the record as like the longest lindy resetting event in defy's history i think that's probably correct and that hurts but you know what's also interesting here is like it also wasn't curve's fault at all yeah it wasn't i think there's i think there's a lesson here and that lesson is almost like scary so this wasn't like a smart contract risk where uh michael and the Curve team, the developers over there could have been more careful, wish they had audited more, that sort of thing.
This was deeper in the stack. Yeah, that's as deep as it goes. This is a problem at the kind of EVM compiler level with a Viper, specifically a couple of versions of Viper, right? It was like introduced at one point in time. And then it kind of like, you know, it was no longer the case in the newest versions of Viper. It was like accidentally introduced. That in itself is kind of scary. So we might say that Solidity has a stronger Lindy than Viper because it's an older language. And it also has more assets that are dependent on. It's more vetted, right? And so I think there's a lesson here of, well, again, what do we always say at the end of every Bankless podcast?
Crypto is risky. You could lose what you put in. Like the lesson is you never know. But then there's also a question of what other zero-day bugs lurk in the code base out here. And I do think that, you know, solidity, EVM is becoming a bit more like Egypt pyramids. And I wonder and worry about some of the newer languages and other ecosystems. At some point in time, something like Solana is going to have its Viper. Its compiler moment. Yeah. Yeah. And Viper itself, which is interesting. What's the future of Viper? Who's going to use it moving forward? So there's that kind of learning here. The last thing I'll say is, is this an example, do you think, of like, okay, so Viper is a public good, right?
I guess I feel like many of the actors who have some responsibility for this, you know, are kind of like feeling the brunt of this. So in that way, DeFi is kind of performing as expected. It's not like socializing the losses to, you know, the public, right? So if you're in Aave and you chose to lend more money to Curve, kind of knowing the risks here, well, you get a haircut. That's as it should be, right? If you are Michael and you're like lending all of the CRV inside of a protocol and taking excessive leverage, well, you get hit too. And so you're kind of, you know, I guess punished for this.
And of course, Curve is, as with all DeFi protocols, appropriately risky. So from my perspective, DeFi is performing as expected, except that there's this one thing, this public good that we call Viper, medium language. How well funded is that? It's like the public infrastructure that we're really not paying attention to. And so there's probably other places like this inside of crypto that are woefully underfunded, but should be funded far better and should be audited and should be vetted far better because that's Atlas's shoulders that the entire thing is kind of hanging on. So that's another takeaway to me.
Yeah. And this is something that you can audit, you can vet, you can audit again, you can audit again. You'll never know. You'll never actually know. You're muted. Is there anything comforting here as we end? Silver lining is it couldn't have been worse? I mean, we made it, right? That's good. We made it, did we? We did. We made it. I mean, imagine if this had been a solidity, like, EVM issue. Yeah, right. What happens then? Yeah, what doesn't kill DeFi does make it stronger. Yeah. I guess that's a takeaway. Yeah. And all of the protocols performed as expected according to the rules. We didn't socialize losses.
There were no bailouts. I don't know. There's a silver lining there, David. I think I'm going to take a few moments to try and think of some more silver linings, but we'll do it on the weekly roll-up tomorrow. Guys, that's it. We've got to end with this. I think quite appropriately, risks and disclaimers. Crypto is risky. So is DeFi. You could lose what you put in, but we are headed west. This is definitely the frontier. It's not for everyone, but we're glad you're with us on the bankless journey. Thanks a lot. Thank you.