Enhancing the Security of Stablecoin and RWA Lending

unStable Summit Denver · 28 Feb 2024 · 37:24

Nate of Token Dynamics moderates a panel with Michael Bentley (Euler), Niklas Kunkel (Chronicle), Alessandro Buser (Dialectic), Yaron Velner (B.Protocol) and Chris Carapola (Curvance) on what keeps lending protocols up at night. Bentley recounts Euler's 2023 exploit and recovery and contrasts paternalistic risk management, as at Aave, with free-market isolated pools such as Morpho Blue. The panel weighs smart contract risk, asset liquidity and systemic risks from oracles, stablecoins and bridges; Velner proposes separating objective from subjective risk, and Carapola and Kunkel back oracle-fed circuit breakers. They close on how real-world assets, with transfer limits, whitelisted liquidators and offchain pricing, change lending security.

Speakers

Topics

From unStable Summit Denver, hosted by Stable Summit.

Transcript

the next panel is about enhancing the security of stable coin and rwa lending um it is moderated by Nate founder of token Dynamics uh we have speakers Alexandro from dialectic Michael Bentley from Oiler yaron bner from B protocol Nick kungle from Chronicle and Chris car carola from kin welcome our speakers everyone Hi everyone uh I'm Michael I'm the co-founder and CEO of oil labs uh Oiler was a lending protocol that was started back in 2020 during the pandemic uh and by 2023 was the third largest lending protocol on ethereum uh until uh an unfortunate incident uh in that year brought it to a halt but um yeah this year I'm very pleased to announce that

we're back with the bang and we just announced a V2 version of the of the Ola platform it's a modular lending protocol that we'll be launching uh in the coming months so very excited to talk more about that thank you hi uh I'm Nicholas kungle I'm the founder of a Chronicle protocol and uh we're an oracle protocol that spun out of Makow a couple years back um fun fact we were actually the first Oracle uh on ethereum uh when we went live in May of uh 2017 uh for protoy which was like the uh the Prototype like precursor to to die um at our Peak I think in the last

cycle we were securing almost $22 billion in in tvl and uh currently we're securing $10 billion in tvl across a multitude of D5 protocols yeah hi everyone um I'm alesandro I'm with dialectic uh we are an asset manager and we do liquidity provisioning in in defi uh so we provide liquidity to all sorts of defi protocols and opportunities and we work quite closely with a bunch of different protocols to do targeted uh liquidity alloc to key Pairs and we just try to generate yield um in a fully onchain manner yeah hi everyone I'm iron I'm from B protocol B protocol is a economic

risk management protocol where our vision is to try to take the human factor as much as possible out of the equation H where the advantages for that are kind of twofolds one risk management today is super political uh and has a lot of human bias both from you know Dow politics but also marketing business Etc and I think these days defi defi Landing H is what is very notable in the sense that it's very different from most of the defi you know protocols and from the defi EOS and potentially not what we would imagine and want defi to be and

the other Advantage there is that by removing the human factor uh costs are much more affordable these days protocols spend you know ridiculous amount of money on risk management H and the outcome is both political both very expensive also non-scalable you cannot really manage you know like thousand of assets etc etc so yeah that's me hi is that good audio a lot of familiar faces here uh I'm Chris from curv an we've been building curv an for around two years now 22 months uh we're what I would call a modular multi-chain money market for yield bearing assets so

that's everything from uh LPS to real world assets to liquid staking liquid reaking everything really under the hood um so we're really excited to be bringing this to Market probably Q2 of this year and yeah just uh looking to really push d forward we're going to be open sourcing the code base and um you know looking to build the future here awesome um thanks everyone for the introductions what I love about this panel is everybody has a very unique and specialized expertise everybody's got expertise related to lending protocols but I'm expecting a few categories of risks to come up in this next question which is what risks do you see for

onchain Lending protocols what keeps you guys up at night I mean uh yeah the elephant in the room probably uh uh I mean smart contract risk I'm going to put that throw through my hat in the ring for that one uh it's quite an important one uh yeah it's really really really important to uh secure smart contracts and extremely difficult to do so as as we found out we were a really security oriented team at Oiler labs and uh the V1 of the protocol was extensively audited uh we had the largest bug Bounty of any any Lending protocol on ethereum we use formal verification all the rest of it and uh and in spite of all that uh yeah we

found ourselves uh that in uh March of 2023 uh an exploit bought the protocol to its needs and uh drained users funds now we're very uh with a lot of hard work uh we were able to recover all the funds and uh that's part of the reason why we're still here today about to launch V2 but uh yeah it was a harrowing experience and uh it really highlights how challenging uh securing you know smart contracts can be um I think overall like in you know defi as a whole becomes sort of antifragile because protocols that get exploited that have holes end up kind of dying and the ones that survive generate a so-called Lindy effect and you you can actually kind of prove that they're you know verifiably

secure because they haven't been hacked and that just take that process just takes time and so I think that's that's kind of um yeah a big plus for for defi as a whole in the long run but the the proc process by which that security comes about can be quite brutal right thanks Michael um yeah I mean clearly I think smart contract risk right is the uh the elephant in the room um if if we go like one layer of abstraction deeper I would say kind of the liquidity profile of assets um I think when you know someone like maker or you know Oiler or a right or compound right on board an asset there's usually some kind of like Risk

analysis done right on what is the liquidity of a certain asset what is like the you know maximum draw down in a in in a tumultuous kind of situation what is the maximum debt exposure that the protocol wants to this particular asset and so after this kind of like research like profile is done of this asset right there are certain kind of numbers that spit out right and those might be like an interest rate those might be a loan to value kind of like waiting um and the problem here is that these um these characteristics of assets are

quite Dynamic they're not static but I think uh we there there's a risk on the protocol side right that we don't update them frequently enough um to essentially reset or recalibrate the the risk parameters according to like the the real time you know dynamic profile of of this asset and I think uh you know on the more conservative lender side like I would I would say maker is quite a bit more conservative in in what we add and and you know what kind of Leverage we allow people but on the the more extreme side you have people who you know go after the longtail more right and they do this because you know like there's users who who want this right and they they see their ability to

build out a user base in this way uh but it's also the most riskiest right uh those are like the the the ones whose profile changes the most and so um you know this is this is a significant risk that I don't think is like acknowledged enough and specifically would you call this liquidity risk or are you speaking to the broader profile the asset I would say it's like the broader risk profile of an asset but I think liquidity factors in significantly mhm great thanks Nicholas yeah know I I totally agree that the smart contract risk is is the is the most pre relevant one and also just historically speaking funds lost in defi the majority of that was

due to Smart contract exploit um it is a very broad attack surface and it's very difficult to contain the risk in that for some of the like economic parameters on the landing protocol that's like a small set of of information that needs to be analyzed and it's a lot more contained as as an attack tax surface and also those things don't happen instantly whereas usually a smart contract tag that's like one transaction and and the money is gone so both on like a preemptive security analysis of protocols but then also being able to react to the risks manifesting it's uh it's much more difficult to manage yeah H so maybe replying to Nick I think like liquidity or risk F risk

profile or more generally quantitative risk Prof profile is maybe one of the fewer aspect that actually I don't know kind of able to to actually manage and you know risk Could Happen uh obviously but you know you can update parameters as frequently as you want right obviously there's some ux implications Etc but I think it's one of the kind of risk aspects that are kind of heavily investigated and handled by serious teams a person of course you know you do always have this Protocols are 2D and etc etc but also typically with quite limited effect H what keeps me night at night is more the systemic risk uh which

of course is mostly manifest by smart contact taxs H but to be more specific you know what keeps me up at night is you know like Oracle issues maybe stable coin issues Bridge issues and stuff like that H were there also the solutions and mitigation so typically for liquidity risk you do have L to value that kind of mitigate it for systemic risks the most you can do is limit the exposure and typically it conflicts you know with some business logic there and okay maybe another nightmare is of course Lio getting hacked Etc right so yeah so in theory you do have system you know like you

limit exposure Etc in practice you know gross and BD dictates other strategies so yeah that's what keeps me up at night I think uh a lot of people talked about smart contract risk mainly here um which I think is obviously fundamentally the the biggest issue but I think as I think about how we want to support things um where we want to go chains Bridges all these things um you have like the total addressable Market that you want to hit you want to support as much stuff as you can as safely as you can and um the more stuff you support

the larger your kind of risk profile right so you have do you want to tap into real world assets or liquid staking liquid reaking like as you said does Lio get hacked do you just support regular eth or liquid staking um so for me I I I think there's like this kind of spectrum where you want to support as much stuff as you can as safely as you can as scalably as you can um and collaborate with as many people as you can and get those kind of like what I would call 1 plus 1 equal 3 scenarios but um you need to stop at some point you can't just support everything you can't support you know the latest and greatest meme coins and you know the longest tail LP profiles

and stuff like that so for me as we're deciding what we want to support it's like where do we stop right because we've already taken on so much and built so much um um do we just try to support everything do we stop 75% of the way there 50% of the way there like and do we kind of bite off more than we could chew so you know that's what keeps me up at night for sure and there are all these types of risks so we've heard smart contract risk Oracle risk Asset Risk there uh a lot of different risks that lending protocols specifically need to be thinking about when they're designing how do we even go about assessing and evaluating these risks how do we even prioritize

them Michael Michael if you want to start um well I think there's uh I I wrote an article recently about the different types of risk management that exist out there and I I sort of broadly divided things in two uh one model of risk management is uh is the sort of paternalistic risk management where the protocol or it's Risk Management Associates actually actively manage risk on behalf of users and uh in that context I I think the the priorities there are uh yeah focusing on the external economic factors and how they're changing through time and trying to dynamically update uh update parameters to to ensure that the the risk of bad debt is is sort of minimized uh the alternative uh model is the the

sort of free market model where the Invisible Hand uh kind of guides things and you see uh users individuals actively moving their funds in and out of pools with different uh risk risk management uh yeah risk parameterizations uh and uh yeah I think there you yeah the again the the same sort of challenges exist right the priority is to uh minimize your exposure to bad to bad debt but you you're really then taking into account that the efficiency of that of that system and you have to actively manage it and be kind of on the ball monitoring you have to have extensive monitoring systems of your own and so the priority then comes down to the individual's uh yeah responsibility to actually manage that H

and you mentioned these two models paternalistic and free market with the terms used can you give a couple examples for the audience just to put some faces to names in that sense yeah sure I think uh I mean the probably the biggest example of a paternalistic model will be Ave and the RV Dow's uh governance of the system that's they've relied on Risk Managers like uh B protocol and gunler and chaos and others uh essentially to dynamically update loan to value ratios among other things as as economic conditions change um and users in that protocol sit there passively right they expect the to be able to just deposit and allow those parameters to change to keep them safe um one of the earliest models of uh of of sort free free market would be

something like cachi that was bought about by the sushi swap uh developers but there more modern sort of examples probably things like azna uh where they have purely Oracle free isolated pools uh Moro blue would be another example of this there's fra lend as well here you have you know one of the issues there's potentially more liquidity fragmentation but ultimately your users have the freedom of choice to be able to deposit into isolated pools and uh of course I'll just mention the oila V2 is coming soon and uh I think uh yeah the the modular nature of that protocol Lally support both different risk models and allow us the freedom of choice whether they want more of paternalistic um you know handholding kind of uh risk management system or or they want the freedom to to you know

dynamically adjust their own allocations awesome thanks for sharing I think that's a really helpful mental model if uh the audience hasn't read your article I would recommend they do that it was it was great putting words to terms that I think all of us think about when we're thinking about lending protocols and the different architectures but um it was a a concise way of putting it that paternalistic versus free market thanks no I I I quite agree with that interpretation I think the risk is more on the user side where I think the protocols have been quite clear presenting themselves as you know we are paternalistic and managing risk on your behalf right to some extent versus you know you're managing risk on your own um

so so I don't think it's a awareness problem from the the protocol's point of view I think they're they're trying to do that as best they can uh but I also know that you know you know it definitely seems like we're entering into this next cycle there's going to be an order of magnitude of new users kind of coming in and they're going to learn as best as they can and get onboarded quickly and uh I'm not sure they're going to appreciate the respective differences between these protocols and so I think the uh the the the risk is you know uh that the protocols have set themselves up the way

that they've set them M themselves up right but uh people may not use them in the way that that they expect right and uh that can lead to um consequences in the market and those May compound right and lead to kind of unexpected scenarios definitely unexpected scenarios you want to elaborate on that like maybe historical examples are you thinking highly profitable trading strategies or like systemic collapses um more like cascading liquidations and the like where you know um let's say like you have like a uh a pegged type of coin you know like you have like a you know everyone seems to be calling out Lidos so I'm not going to

call them out right uh but but some some other like eth you know staking derivative right price versus eth and there's no reason why that ratio should really deeg considerably given that we have the ability right to unstake and uh you know cash out one for one uh but there are discontinuities that can happen and uh they can be triggered by you know seemingly inert events like uh silic Valley B for uh Silicon Valley Banks insolvency like macro events I would not classify those as inert events like but but yeah yeah okay great thanks for elaborating

alandro yeah I mean um I agreed that the burden should be placed more on the liquidity provider or or the user rather than the protocol I mean different protocols have different design philosophies there's different approaches it's an open and free market and ultimately it's up to the liquidity provider to do their own due diligence to understand what risks they're taking and then allocate Capital based on on their independent risk assessment um and and there is some lindin um to to the different Protocols of course like like things that have been proven to work for a long time are likely going to work in the future um but yeah I mean on on the liquidity provision side like we really

look at the at like the risk Frameworks and and the risk management that the protocol sets in place but then we always need to like update our view and update how it compares to the other places and ultimately shift liquidity to where the best risk adjusted returns is and and in terms of upgradability of of protocols and parameters there is always a bit of risk that if the protocol is upgradeable and if the parameters are upgradeable then that kind of forces us as liquidity providers to monitors those parameters in real time um and then also react in in case something changes and and that could mean that if some risk parameters change we have to withdraw liquidity redo the due diligence understand what changes understand how

the risk profile change it and then if we feel comfortable re redeploy um so I think that's something on on the protocol side to also consider kind of like how are the liquidity providers perceiving the risk of the protocol and and kind of think about it in in that sense as well yeah so our approach what we try to uh to kind of push forward is the separation between objective risk and subjective risk uh where the subjective is both uh where the politics come but also kind of personal beliefs and assumptions uh but also I think most of where the money is kind of spent in Risk

analysis where it shouldn't necessarily be the case and you know like a simple example here is maybe chronical versus chain link right if you look at the objective data so maybe you know like very similar Lindy we look at it kind of historical deviation I assume we'll get you know like very similar numbers but still you know like maker prefer a chronical right have a preferred chain link there you know kind of no objective data to support it and obviously you know I can you know write and also charge a lot writing 20page number on why this is better or why that is better H and to is I think like most most of the work these days of risk

analysis is around that area where at the end of the day you know eventually it's kind of should be the decision of The Da or Community you know what they prefer or even if the of the end user you know if you're appable if you really have this Gran granity to theci side and this is not happening and you know like in s there is this paternalistic approach where you kind of pay external vendor to tell you what your subjective opinion has to be and then there's this you know kind of objective opinion of you know so like in or you can just measure deviations but you know for asset in general you can measure liquidity volatility ER and in traditional risk management uh

work these days these are kind of you know they're coupled a lot at the end result you don't really present to the user you know what stems from what whether it's subjective and or objective you just mix everything together uh so yeah so like kind of our approach is to separate between these two uh let the either the user or the da kind of set this subjective uh risk appetite they want on top of that you know build the objective layer and then eventually based on the risk appetite and objective data you know output recommendation and other than you know being more scalable it also kind of you know put like the risk level that the

protocol choose you know like very H straight into the user face right where right now you know subjective and objective analysis very much coupled and mixed together without any clear presentation of you know what is what yeah it's kind of like a blending of the two approaches of paternalistic and free market in the sense that you're offering an option to the users but not forcing or choosing for them Chris um I have two things I'll I'll speak on for this the first is on the permissionless side so uh when I think of smart contracts they're they're essentially these State machines right you have states that change and these smart contracts interact and um when we

think about permission nature um you're talking about very small systems but also very large systems I would consider a a lending Market to be a very large system um so when I think about something like wrapped ether I think that's something that should be immutable but when you get to these very large systems it becomes very hard to have a permissionless configuration that's um you know whether you call it Lindy or evergreen or um even competitive I I think that's a little more challenging so I lean a bit more to what Michael described as the parental model um but what I will say is that I think some Dynamic uh you know State dependent

systems are incredibly important when you do that because a lot of uh parental models will take place over weeks or months or years and the volatility and the market from you know today to tomorrow to next month to next year is very different um and you're really optimizing for two different things you're optimizing for the low volatility periods as well as like the heavy volatility periods right so when the market is quiet but also when massive news comes out like the ETF for example for Bitcoin that that Drew a l a lot of volatility in um and you want to make the markets attractive to both the

depositors that that would borrow but also the lenders that are taking essentially the other side of the trade there um so you need to be both kind to the depositor the borrower in periods of low volatility but also be able to offload that risk and protect the lenders in periods of high volatility and I think that's really hard even with you know definitely a permissionless model but even with a permissioned model um because if if you're talking about volatility that pops out in 5 minutes or or a block um you you don't have time to really adjust those things so if you can I think the parental model is is is the right direction but I think having those Dynamic systems that that can handle those changing states I I think helps a

lot as you look at the parental model so I I I just really want to comment on that like um I I think that that you touched on something really important right that even in the parental model you need some form of you know automation uh to almost act as like a circuit breaker right because uh humans will not be able to react in time to to enact the protections necessary on on the system um and I think oracles can actually be really useful in this respect I think oracles are kind of underutilized in the sense that like everyone kind of when I say the word Oracle just assumes like it's going to give you the price of an

asset but they can really report to you you know any like external function of State St and so an oracle is not always the right answer right there's you know things that you can easily query on chain to trigger a circuit breaker right that doesn't require you know trusting an oracle it just maybe requires like an external trigger um but when you start doing things that are you know dependent on Cross chain or dependent on external data and an Oracle is absolutely uh appropriate right and in terms of a circuit breaker right uh there's usually like compared to the damage that an a malicious Oracle can do with with a bad price right the damage that you can do

with respect to a circuit breaker is actually rather limited um and so I think it's it's rather underutilized for for that purpose I I think you're spot on with that um I don't want to show a lot of the stuff that that we're working on but I'm I'm obviously incredibly biased but I think from my perspective 100% agreed I mean one of the things that we that was really important for us was like what I would call like you know TR like don't trust verify right so you can use these Oracle prices and such but we for example look at a dual Oracle model where um we we essentially use a pessimistic version that the collateral uses the lower of the price and the debt

uses the higher and if those oracles deviate too much then it starts pausing things as you said circuit breakers and I think it's hard to gauge those numbers and I think groups like B protocol it would be incredibly helpful in that um but I think if you add those systems in that that help those kind of tail scenarios you exponentially improve the security of those models and and what you can support because otherwise you're going to be constrained to the lowest volatility the as you said most Lindy and and the most liquid assets and then it becomes a very crowded Market um which is great I mean having a lot of options and and competition is is what moves the industry forward but I think

expanding what we can do requires a little bit more um you know kind of strategic Dynamic systems and making it [Music] um flexible I guess for for the different states is really important so a lot of respect to you guys on the work you've done on the Oracle side and yeah definitely agree on on using those circuit breakers that's a cool way to think about oracles as as well as you know they can provide any data it's not just data about the liquidity or the um the risk of a particular asset it's about what information needs to be fed to The Lending protocol and if that's turn off because there's this massive

systemic risk of cascading liquidations happening then that's going to help the protocol survive long term um so everything that's been mentioned here kind of gets to our next question which is um talking about the actually I'm going to gloss over this in the interest of time but um I wanted to talk a little bit about the difference between designing immutably designing protocols to be immutable and designing them to be upgradeable um we've kind of covered that but in light of that uh and in light of everything that has been discussed do you guys think defi can interoperate with real world Assets in traditional finance and what how does the introduction of real world assets change the security assumptions of lending protocols uh yes I definitely think they

they they can and they will I think you'll see a lot of that uh happening in the next uh in the next few months actually I think it'll be a massive Market one of the biggest concerns or challenges with real world assets is often that they come with uh additional uh additional uh restrictions and checks and balances so for instance some real world assets will have secondary transfer restrictions I can't just permissionless send from A to B the user might have to have some compliance checks or be on some white list um and that that plays an important role where you need to liquidate those assets because you can't just rely on a a permissionless open liquid ation system you then have to have Whit listed Liquidators involved in the system as well and uh and so yeah the having liquidity available uh for and be able

to perform those liquidations is a challenge and also understanding the prices of those uh real world assets um normally we rely on prices from defi itself SO onchain trading activity in those cases you might need to actually take prices off chain from some traditional Finance exchange or or wherever else um or some Bond mark market and and then put those on chain and of course that introduces new trust based assumptions so a couple couple of challenges there definitely yeah one of those being the Oracle problem Nicholas sure um so I absolutely I I think it can be done I think maker is doing it very successfully right now right where I think they're making

around $230 million in revenue and about 50% of that is coming just from Real World assets right and the other 50% is coming from from crypted uh Crypt back loans um I will say I think the implementation of them today is quite rudimentary especially with respect to the risk that they present um integrating an rwa into a lending protocol is or any D5 protocol is significantly more complex than integrating a crypto native asset um I would say like a good in between step of a crypto native asset and an rwa is like a bridged asset right where you have um the real asset you know sitting in

escrow on some bridge in some chain somewhere right and you have a wrapped version of this asset that is a claim on the original asset you know floating around on another chain right and then that becomes integrated into a protocol and I think um the last couple years right DFI protocols have had to deal with like how do you manage that situation what are the different kinds of risks and what are the checks and balances that you do and so with rwas it's just like another order of magnitude um kind of in terms of complexity uh but again I think oracles can help a lot not just with things like price uh but with a lot of like auxiliary metrics that are going to help

def5 protocols deal with those risks great thank you um alesandro yourone and Chris we have uh 45 seconds left I'm okay guessing we can go slightly over but uh yeah you know couple couple bullet points would be great yeah I'll I'll be very quick I mean I I I fully agree that uh it's going to introduce a lot of complexities and usually complexities are not great for reducing risk because as there's more complexity there's more attack vectors and more things that can go wrong um on the asset side I mean as liquidity providers I'd rather have exposure to some asset that I can redeem for something real rather than some fractionally collateralized stable coin or something

um so from that point of view it's it's great that we have more assets that we can play with and and deploy into but again like all of these assets will have a lot of restrictions on on transfers and and kyc and things like that which just adds a lot of layers of complexity and all of these layers needs to be analyzed and assessed and and it's going to it's going to be fun in in any case yeah so so maybe like quick few words so yeah I think in general it's like a huge systemic risk I think right now it's uh people underestimate it I think like in the coming few years we will see you know few events then we can maybe analyze it better H but yeah but the fact that it's you know huge systemic

risk does not mean we cannot handle it or integrate it into defi there are already so many other systemic risks so just you know another one I'll be brief but um a lot of already good stuff said on this I'll talk about more of the liquidity side when you look at like very liquid stuff like short dated treasuries I think it's very easy cuz they're essentially treated like money I mean a lot of stable coins today are basically real assets under the hood whether they give the yield or not um but when you start looking at these like kind of longer dated heavier duration risk things I mean you look at a house you look at 30-year treasuries you I mean my background is in traditional Finance so I used to price a lot of like very liquid bonds for example so how do you

price a bond that hasn't traded in two weeks you know it's very hard um so I think when you start looking at those like kind of longer duration things like less liquid things you have to move away from the more typical pool model to more of like a peer-to-peer model where it's more of like an agreement like you will you know either they'll pay back this loan or you get the thing whatever the thing is um because it's just so difficult to really price that that you almost your lenders almost become uh exit liquidity right if the price moves against them if there's some distressed debt or something um they could just get taken for a ride in this like real world Mev if you will yeah yeah a couple things came up here I think um the eill liquidity of these assets and also the

um you know the idea that you could use an escrow to better wrap that asset to manage the risk I think these would be really interesting and I would love to dive more into them but we're out of time so maybe just a few quick words where can people find you guys um to follow more of your work uh yeah please is it Oiler Finance or follow Oiler Finance on Twitter X yep uh our website is Chronicle labs. org or you can find us on Twitter at Chronicle lives thank you uh yes our website is dialectic doch and on Twitter it's dialectic unor group so BR protocol. RG and on Twitter B protocol is follow curv an everywhere

curv an on Twitter curv an.com you know we'll we'll get you like messages by carrier pigeon curv ants everywhere so we'll be live in Q2 excited to build with all these great guys here um and looking forward to building the future awesome thank you guys and I'm Nate you can find us at token Dynamics on Twitter and um yeah thank you to all the panelists if we get a round of applause for all these [Applause] guys