Protocol Spotlight: Hoyu, Lending Without Oracles

Tokenomics AMA · 17 Jan 2024 · 59:47

Recorded as an X Space in January 2024, this Protocol Spotlight has host Nate talking with Jogundas Armaitis, a theoretical physicist building Hoyu, a lending market without oracles or liquidators. Jogundas explains how Hoyu pairs each AMM with its own isolated lending market, so every swap updates price and liquidity and unsafe loans are liquidated before the swap completes, a design meant to make bad debt impossible and allow borrowing against any token at up to 90 percent loan to value. He also covers why the front end disables shorting, fixed-rate lending, a one-week delay on removing liquidity, a price cooldown after liquidations to deter manipulation, the 0.5 percent borrowing fee and plans to launch in 2024.

Speakers

Topics

From Tokenomics AMA.

Transcript

all right cool see people coming in let's kick this one off yogas you've got the mic uh let's check that how you doing oh hi there doing well can you actually hear me yes I can yeah loud and clear that's great how are you doing I'm doing well yeah it's um thanks for for meeting today I know it's getting a little later in Europe and um really really glad we get to have this conversation and um talk about ho you it's you know I'm super excited about this I've wanted to bring you on to do a Twitter space for a long time now oh sounds great thanks a t for having me on um I'm always excited to talk about hoou so uh a real pleasure

yeah it shows I mean it's that's awesome I'm really really excited um so yeah I have I have H kind of a loose template of of the things that I want to ask you about and um and we'll you know we'll kick it off here and then if the audience has any questions or feels like anything needs to be clarified they can just raise their hands and I'll be periodically checking to see who's got a hand raised for um you know clarification questions but I think um you know at the very least we'll open it up at the end for audience questions but um yeah so let's let's start this off I want to first introduce you um share a bit of how I met you so uh yogas spoke at eth Prague in June this year or last

year I guess 2024 now and um spoke about the problems of money markets of traditional of of lending markets in crypto and um and talked a little bit about the high level of what a solution would look like which in the in the background is hoyu that he's been working on for I want to say a year now but that maybe you can tell me a little bit more about that but um I was really impressed at your eth to Prague talk and I went through it three three times after watching it in person uh watching it online so it's really fascinating and um and the thing that stuck with me is is just you had articulated some things

that I hadn't um hadn't been able to put words to which is like the need to get away from oracles and Defi and uh that speaks to this trend that we're now seeing of Oracle less defi protocol so um it's kind of you know introduction on um on how I know you and and my understanding of the high level of hu but maybe you can start by uh introducing yourself talking about how you got into crypto and um let me share a bit about your crypto Journey oh sounds great and thanks aan for the super kind introduction I mean you must be the person who has seen this talk this obscure talk of me in Prague for the most times by far um so the way that I started in

crypto was actually uh maybe very simple it was more than 10 years ago by now I think I I saw some post on SL do or something uh which led me to read the Bitcoin white paper and uh then I kind of stuck around for uh quite a bit of time uh talk to a bunch of people in different forums so Bitcoin talk was one of those forums I guess maybe some of the oldtimers even remember that it's still it's still up but I think it's way less active than it used to be so that was the very start and then after afterwards I uh also was interested in various different

protocols uh for example colored coins were kind of picking up at some point uh this is of course ancient history because ethereum was not a thing back then and uh um once the ethereum white paper came out I tried to kind of read it very carefully I uh made some notes uh suggested some improvements to the team so that was the very very start and uh well I mean I did different things uh during these uh 10 years I was a research scientist doing theoretical physics uh then I had the startup in the artificial intelligence and Healthcare space which I successfully exited and now hoou is the main thing that I am

working on that's incredible those are that is quite the resume um it sounds like you've worked on a lot of uh highbrow projects you know really um theoretical physics did you say you got was it a PhD or Masters in that or you studied that in undergrad and then went into AI yeah I got a PhD in physics and then I kind of uh got my own fun funding as well to do the research that I wanted to do back in the day and this was really really fun it's um it's a bit lonely to work in theoretical physics because in principle the only thing that you need is a you know like a notebook and a pencil um I mean people work with computers I did as well uh but uh in

principle that's kind of all that you need and it's it's very interesting work but at the end I decided that I want to do something that is more impactful in the short to midterm and that's kind of the reason why I uh was interested in crypto but also in in business in general that's incredible and um I didn't quite know the the extent of your physics background but um I'd imagine that that transfers to crypto certainly I think the um the Brilliance and the Elegance shows in hoyu and um and that's you know something that we'll get into so with that background um you know on yourself maybe you can give a background on hoyu and first maybe I'd like to

introduce hoyu as a concept like what is hoyu all right so maybe a good point to start is uh kind of the defi space at large and what people do with defi so I would say that there are two things that uh have a product Market fit if you want but like that people use very heavily in defi one is trading tokens so uh after Unis swap started everybody can kind of create their own market for their token and uh they can trade that token U Back and forth so that's that's very fun of course another thing that people

apparently are interested in is taking a token putting it up as collateral and then borrowing typically stable coins on top of that I mean there are quite a few situations where one would like to do it and also kind of analytics show that this is what um many people do like if you look at dvls of Landing markets they're they're huge especially during uh bull runs and uh this is uh somehow the intersection the intersection of trading markets and Landing markets that's where Ohio comes in so ha integrates a tra a trading market with the landing market and does it in a smart way not uh do mechanically but in a way that I think makes a lot of sense

and uh from this merge of uh trading markets and lending markets you get something that is very neat so that that thing is a lending Market which supports any token so any assets in Principle as collateral and also has other nice properties like for example no bad loans uh meaning that if the smart contracts are written correctly they should keep on uh executing uh The Lending uh actions no matter what the market does no matter what the volatility of the collateral is or what like the people trying to attack that Ling Market uh kind of try to do so in uh maybe to kind of sum up very briefly

how you is supposed to be the most robust lending Market that you can think of wow and and I heard a lot of things there it sounds like you mentioned the two defi Primitives that have seen the most success in amm in a lending Market these are two things that hoyu fuses together and then um the goal of that is to allow borrowing against any coll of a stable coin and the prevention of of bad debt so in the hoyu system as I understand it bad debt is impossible to create um and and yet at the same time people can borrow against any arbitrary altcoin they can borrow a stable

coin yeah that's that's absolutely right so um yeah so so maybe maybe let's let's leave that here at there I mean of course we could also talk about how other Landing markets work like what what is the role of oracles and Liquidators but I don't want don't know if you want to go into that direction sure yeah I mean um so maybe I could recap a little bit for the audience like your defi Prague talk that the takeaways that I had were that there are two problems in defi lending markets the first problem is the question of liquidity the the question is how do you know that the asset that you're listing or accepting as

collateral is liquid enough that you can accept the spot price for the asset and apply it to all the collateral meaning you know put in another way um or Illustrated with an example the curve uh the large deposit of curve by the founder of curve into a was a problem because while all the curve was marked at you know was around a dollar each 50 million curve is not necessarily worth $50 million there's a a liquidity crisis that happens there when you have half of the circulating Supply deposited and borrowed against in the lending market so the first question that I I walked away with that is a challenge for Lending markets is how do you guarantee the liquidity of the assets that you're

accepting is collateral second question is the Oracle problem and uh so the Oracle problem is how do you know that the price an oracle is giving you is actually the price how do you know the Oracle isn't changing it for their own benefit Oracle the data provider isn't changing it for their own benefit or how do you know that they aren't fooled in turn and manipulated somehow on the back end where the prices that they're looking at are incorrect these are the two questions that it seems like uh hoyu has a solution to you know how do you how do you think about these two questions and and how do they apply to the hoyu solution to the lending Market problems yeah that's a great recap so I

think that these two questions are very uh intimately related so for example on the if we start on the liquidity side the ultimate question that any lending Market poses is like if somebody brings this token or this asset as collateral how much can I lend them and uh when do I liquidate this loan so these are kind of fundamental questions they're not like defi uh they're not new question that defi invented your bank will probably ask you the same questions if you go to your bank and try to get the mortgage but in defi they still uh very relevant just because all the assets or

at least a large number of assets a large fraction of Assets in defi are extremely volatile so their prices change quite rapidly and this can happen like uh completely unexpectedly so for example if some protocol gets hacked their token probably drops s a lot and the landing Market has to be able to react and they they should be able to react rapidly to these price changes and that's where the price Oracle issue comes up so oracles have to be uh very fast just because they're the only information source that the lending Market has so a lending Market typically is a smart contract on some blockchain and U the smart contract I mean doesn't

know any anything by itself doesn't know anything that happens in the World At Large by itself so that's why they rely on oracles and typically these oracles only do uh provide them with price information so the landing Market gets spot price meaning the price of this collateral asset at that point in time and that's about it they have a single number every uh period of time and that's what the landing Market has to operate with so uh to recap again Again The Lending Market has to know if the collateral covers the debt and this is uh happening through this very

harmonious interplay between oracles Liquidators and the landing Market kind of smart contract so if any of these actors stop behaving properly The Landing Market is immediately in trouble this sounds like a really elegant solution because I think what you're describing is the amm feeds The Lending market prices and liquidity information so it gets around those external dependencies that other lending markets have yeah that's right so so what I had described was how a traditional lending Market works so they they have these articles they have these Liquidators and they mean articles and Liquidators they don't live on chain they are some um

actors or you know like software that is offchain but uh in Hau this is completely this this is handled completely differently so in haou uh there are no articles no article dependencies there are no Liquidators so there are no external actors to kind of pay off to watch your uh loans and decide if if and when they go back bad and um I mean that's a completely different system which does not rely on these kind of external components that the landing Market itself can't control so so you said it's not possible for the loans to go bad how does that

work right so in Hau uh as as we mentioned at the beginning the uh there are two basic building blocks the Dex or the amm uh so that's where the trading happens and The Landing part that's where the lending and borrowing goes on so the only time where it token price changes uh I mean that that can only happen if somebody is trying to swap one token for another so if I'm like selling some token its price is going down and in Hau this swap action is one of the actions which uh sends information to The Landing market so if I'm swapping a

token on the trading Market side this price information the fact that the price has changed goes directly to the Lending market and the landing Market is smart enough to look at the new price and uh to decide if this new price is okay or not so if it's not okay The Lending Market will will first of all liquidate the collateral that is backing this loan and um only then does it allow to proceed with a swap so that's like one of the situations where the interplay between the amm and the lending Market uh leads to a liquidation of a loan which would otherwise have

gone bad okay and so and you said uh I think the way you word it is that the lending Market is smart enough but I'm guessing that all happens in the smart contract logic rather than a group of Keepers or something like that what is what does that look like how does the lending Market decide whether a loan is bad or not or about to go bad and prevent it y so that's that's again a key question so uh everything indeed happens in smart contracts and uh basically the smart The Landing Market smart contract has to always be aware of liquidity levels like if I sell this collateral how much money will I get for it so

that's what the lending Market has to know and this relies of course on the price of the asset but the price is not the only Dimension that it has to take into account it also has to take into account the uh liquidity level or like the lp uh uh level if you want and uh uh I mean with each transaction this Landing Market smart contract has to evaluate like after this transaction will the liquidity and price be still sufficient such that all of the loans that are outstanding uh that they can kind of uh still be considered good loans and if not the lending Market has to

immediately take action so there are no Keepers involved no oracles involved and uh all of this happens inside of uh a smart contract logic that's awesome so basically the the amm feeds information about liquidity and I'd imagine price into the lending market so that the lending Market knows if the price goes down then there are going to be loans at risk because they have a a certain loan to value ratio right that can't um be deviated from or can't you know people's loan to value amounts can't go above a certain threshold um so what is that what do those parameters look like in

the system like how does it compare to something like a or or another lending Market um in terms of parameters for loans so in these more traditional lending markets the only parameter that you will find is loan to value I mean in some Landing markets you might find some more exotic parameters maybe like classifying tokens into I don't know tier one tier two and so on assets but at the end it kind of boils down to loan to value so uh loan to value means that if I have uh I don't know let's say uh some Pepa token which costs like one cent per token or whatever and they have like 100 Pepa tokens uh as collateral if my loan to value is one then I'll be

able to just borrow $1 and if loan to value is lower if it's like 50% then I will be able to only borrow 50 cents on that collateral so that's like what loan to value means I mean this this again is not some thing that the defi D invented it it uh did exist in Trad f as well and it just means like how risky is this collateral it basically tries to take into account the fact that when selling a collateral you will most likely not get uh like 100 cents on the dollar you will probably get less and that's the reason why loan to value in these more

traditional protocols is typically not too high so you can see LTV values anywhere in the range of 50% to maybe 80% or so in these more traditional Landing markets like I don't know like a and compound in Hawai there is a concept of LTV as well uh this LTV is fixed for for all of the assets it's fixed at 90% and uh um it might be kind of exotic or interesting to mention that the reason why the LTV is not 100% in ha is a little bit different from uh how it uh how it works in these other situations

that they just described so basically the thing that is going on in Hau is that um you have a certain liquidity level uh on the amm side so if you liquidate any amount of collateral this will mean that the price will drop just because the liquidity is finite and if you want to uh kind of avoid very large price drops due to loan liquidations you should just limit both the LTV uh of the loan but also like the amount of loans that can be borrowed on a particular collateral asset so uh the

ideology is a little bit different in Hau versus traditional more traditional lending markets but the concept of LTV is there with a uh interesting uh difference that in Hau this LTV is very very high so it stands at 90% even for uh very strange and very liquid tokens that is really interesting and I guess the the key there is that bad debt is impossible so where 90% would be potentially dangerous for a if their collateral were to drop 10% or 15% in a day they'd be left with bad debt but because that's not possible in hoyu a 10% margin there is acceptable um it sounds like and and maybe another way to

think about it tell me if if you see it this way as well that um that that 10% margin in hoyu is there so that there is something to borrow right because it without an over collateralization of some kind then there isn't actually anything that people can take out against their collateral right if there's 100% LTV then that's just a trade um so yeah yeah that's that's a very good way of thinking about it I mean so uh when constructing a landing Market you don't want to end up in a situation where people uh instead of kind of selling their token maybe let's use Pepa as an example again instead of

dumping their Pepa for USD on some trading Market on some decks you don't want them to come to your lending market and try to kind of do the same but with a lending step in the middle so uh that indeed would be the case if uh uh if somebody took loans for like 100% LTV and uh ha does not do that right because it would be instantly liquidated is what you're saying I think right right well I mean there are kind of many many ways to talk about it I guess but uh like instant liquidation is one a trade is another one uh having like zero zero availability of loans on that asset is maybe another way to also

State more or less the same mathematical fact if you want right right for sure okay um and so to clarify this um and we've been talking about hoyu as one sort of U entity what does the architecture look like like there presumably there are multiple pools and then um hoyu is also hoyu is not just an amm that you're borrowing from it's it's an amm that's sort of plugged into a lending Market can you speak to that sort of architecture so it's kind of hard to describe visual things in words but I mean the the architecture is not that uh complicated if you want so it's very similar to how older versions of Unis

swap work so Unis swap V2 for example and the architecture is that a user might come uh to the factory smart contract which is a smart contract that manufactures amm and lending Market pairs so each uh amm each token pair so for example Pepe usdt could be an example uh so Pepe usdt would be something that the user kind of puts types into the factory smart contract and then the factory smart contract spits out a couple of new smart contracts one of them would be the amm part another one would be the landing Market part for that particular token

pair and then uh after this happens basically there is a new lending market for this particular token pair that the users all of the users can permissionless interact with and uh I mean that's the architecture so basically each of the amm landing Market pairs each of those are independent I mean they were created by the same smart contract by the factory smart contract but they are completely isolated from each other they don't really interact uh one with the other and uh this again kind of guarantees that there is no contamination so if somebody I don't know does something bad or uh mins a scammy token and then tries to create a

landing market for it this is completely independent from how all of the other tokens uh interact with the with their respective lending Market contracts if that makes sense yeah and it makes sense that it would be that way you know it's siloed rather than cross margin um to minimize the the contagion between um you potentially potential bad debts that' be created in another lending Market um but here you know it makes sense that pools would be distinct from one another um so maybe you could walk through uh first of all before before I'm gonna ask you next to walk through maybe an example of a a a borrow from a borrower's perspective but um before

that I am very curious how did you even come up with the idea for this because this is so out there and it's like it's um it's also it's so obvious it's like oh of course you solv these two problems but the way that you've done it just seems very unique how did you come up with the idea for hoyu well I mean I kind of looked at various protocols um this was maybe several years ago maybe two or three years ago and I was really disappointed that were there were not too many um you know truly decentralized and truly permissionless protocols that that

people used I mean I kind of assumed in advance that uh most of the most of the D5 protocols would be uh just completely decentralized meaning that there is a smart contract and it does its thing and that's that's about it but it turns out that this is not the case at all uh it is the case with Unis swap to a certain extent I mean they they have a fee switch but besides the fee switch there is nothing that the da governance can do to the older versions of Unis swap but besides Unis swap is really tough to find um immutable smart contracts I mean there there are several protocols but uh that's rather an exception and not the rule um and uh I had assumed that

lending markets work this way that they have some connection to the amm and that's how they kind of do their thing but after studying how compound and other works I kind of realized that this is not the case and I mean for me the high architecture looks very natural I mean I assumed this existed and it does not so that's the reason why I decided to kind of go ahead and try to try to create it of course once you identify something that should kind of exist in a natural state of things um it's probably a good idea to try to understand why that is not the case like um because I mean there are lots of smart people in

the space and people are exploring various ideas trying to kind of come up with interesting products so I spent quite a lot of time thinking of various exploits and the various edge cases that could prevent this thing from working properly and only kind of convincing myself that this can work and that this can be secure from uh uh basically all of the relevant angles did I decide to uh go ahead and uh try to work it out down to the actual smart contracts that's really interesting I feel like um seen that uh a couple times where you're like why doesn't this exist

and a lot of the time the question is because nobody else has put the effort in or nobody else is I wouldn't be surprised if no one else had even thought of this um but it uh it is really cool that you know the way that you've put hoyu together to solve these problems and to create a censorship resistant protocol because we're probably aligned on this that the the protocols that are not censorship resistant are probably not going to be around in 5 10 years like I wouldn't be surprised if a sunset at some point because of all of the um exploit vectors that there are and the cost of maintaining the protocol they might be profitable enough to um and they probably are profitable enough to

maintain the system of governance that they have but it's extremely costly and time intensive to constantly be updating parameters to prevent exploits of lending markets and um and luckily it seems like ho doesn't have that problem so yeah go ahead just maybe if I can react to this I mean I think I'm a little bit more generous than you are I think that the market has different segments and I mean I think that these uh let's call them semi centralized protocols have their part I mean they're serving a part of the market where people don't really care about this decentralization and uh more crucially where the volatility of their collateral

asset is low so I am not surprised that a is accepting ethereum or Bitcoin as collateral these assets have very uh deep markets relative to other assets but I'm completely unsurprised that they're not taking like Pepe or other like I don't know mem coins as C just because these are super super volatile nobody knows who controls the liquidity and uh the liquidity levels are typically not that deep that is very fair um I think I have a a rather pessimistic view of defi in the next few years and I guess to me it doesn't matter if a um you know if a is around and requires kyc or if it sunsets

those two in my mind are the same um because I think defi you know it's axiomatic defi is decentralized finance uh but I guess I tend to have a little more bearish view of Regulation and things like that um but that those are very good points so uh the next question that I wanted to launch into you mentioned a bit about security assumptions I want to get to that next but before doing that I wanted to ask about the what the flow looks like from a borrower perspective like if you could walk me through the steps of borrowing and who's involved in that process and and how the amm is used right

so um so okay again maybe let's use the same tokens for for concreteness so you're you're a person who for some reason has a bunch of Peppa and you want to borrow usdt uh using that pep as collateral so what you have to do is you have to interact with the lending Market smart contract you can do it either directly or through some front end and you have to deposit this collateral into this Landing Market smart contract once you do that uh The Lending Market knows that you that this particular wallet has a position has a bunch of collateral in the smart contract and you are able to kind of uh get a loan uh using this collateral so

in the process of getting a loan you should specify what LTV is acceptable to you so for example you could uh maybe be very adventurous and try to get a loan at 90% LTV which then means that if the price of your collateral drops even a little bit you will be liquidated or you can try to be very safe and U Get I don't know a loan at a 50% collateral and then uh the price of of Peppa could go down by a factor of two and you would still be okay at that point in time uh so in this process you're interacting with the landing Market smart contract but the landing Market is of course also

talking to the amm trying to understand what the price is at that point in time because the spot spot price is what it needs to understand if uh the LTV is still acceptable or not basically trying to evaluate what your collateral is worth and if the loan that you're asking it for is all right okay so people are depositing their altcoin as collateral at whatever ratio so it's not that the borrowing ratio is fixed at 90% but the max borrow is at 90% it sounds like and then they're borrowing a stable coin against that and um what are they borrowing

stable coins for like what um what's how do you see hu's product Market fit or like who who are the groups of users in hu and why do they want to use the protocol well um I Tred to kind of do some anthropology and try try to understand why people use lending markets at all and I think there are at least two simple use cases so one is uh leveraging up so like you can uh deposit some pppa collateral borrow some usdt buy some pppa for that usdt again deposit that PS collateral and so on this way you are able to leverage up your position and people apparently do

that and another uh uh reason why they do that is they think that their altcoin is going to go up but they need some USD now so these are the two kind of use cases so for example um I don't know I mean maybe I want to or just was the case this was the case in the curve example that you mentioned the curve founder wanted to keep his curve tokens but he also wanted to buy a couple of mansions in Australia so he just deposited his curve as collateral borrowed some usdt and bought a few houses for the usdt that he borrowed uh probably he thinks that uh the CRV the

curve token is uh gonna go up at some point in time and that's probably the reason why he did not sell uh the tokens outright but I mean we can of course only speculate on that this seems like it has massive total addressable market like this is like all degens want to lever up on their on their you know shitcoins or low market cap coins and um hoyu is permissionless in the sense that anyone can open up a pool so if the I mean there could just be like tons of liquidity from various shitcoin holders that want to LP and get more of that

then others are able to lever up on their positions or at least borrow them without selling um that that seems like a like a really large total adjustable Market in crypto as we head into the Bull Run yeah I mean I I'm actually quite excited about this protocol and uh and about its angle as a product I think it's interesting to people and from the discussions with the various different token projects that we had it seems that uh people and like token communities are really excited about getting additional utility for their token like it can be any utility uh I think but utility that has to do with trading is particularly

attractive and um what Hau can give as a protocol to this set of communities is basically additional token utility as collateral like these to you can trade these tokens but with Hau you can also kind of uh borrow against them and this is quite new nobody has experienced that before um we have seen glimpses of this in the last bull run where protocols like Rari and cream I mean got to billions of tvl even after getting repeatedly hacked so it seems that people really do want to use those um lending markets for their alt coins that's really this is interesting

it makes my mind go in a lot of directions I'm thinking about um the possibility of creating a stable coin with this but I I think maybe a more pertinent question is what what happens if someone wants to short um what what does that look like in Ho you H that's a great question so at the very beginning of protocol design we did quite a bit of interviewing and um we came away with the product decision to uh disable shorting so this will of course be done only at the front end level um and what this means is that when you're providing liquidity on the amm side you uh are able to know which of the tokens

um is going to be the collateral and which is going to be the token that you uh that your users can borrow and this basically um means that if you want to short a token or if you want to make a token available for shorting you will provide liquidity with this intent in mind you you won't do it on accident uh and I think that what this will mean is that most of the pools will uh allow shorting USD W which basically means uh longing the altcoin and they will not allow shorting the altcoin purely because people people apparently are

very reluctant to provide liquidity which will then be used to short their favorite token I mean I've heard things like uh uh if if a token is available for shorting and if it's a small funding team a small community you get like horrible things happening uh people try to attack other people and so on so uh basically that's the reason why we made a decision to kind of separate out the short and long aspect oft lending right like I imagine you you actually incentivize rugs if you allow shorting because people can convince an entire community that their token is going to the moon and then they can put a short position on and then just rug the entire

project and make money on it yeah I mean like if we really wanted to be completely neutral we should have probably allowed shorting but I mean I think that I would feel uh not too well doing this experiment with uh kind of shorting highlighted right from the beginning I think that um we still have to learn a lot as a bunch of defi communities and maybe once uh this thing becomes much more mature maybe then we can kind of move towards shorting by default or something but now I think we're still very much not there yet and I think I like the ethos of up only I think that aligns really well

with the time that that you're um building this and presumably looking to launch so I'll I'll ask about that in a bit I don't know if you have timelines on that but um you know one question that comes to mind as a followup to this is how how do you distinguish between altcoins and stable coins if if you're preventing shorting it I think that implies that you're making a distinction somewhere in the protocol between those two so on the smart contract level there no distinction uh you can uh create any pair that has any two USC tokens on on either side the important thing is that um even at the Smart contract level kind

of token one and token two in a pair these are not the same so the pair is not symmetric with respect to token one and token two so token one will be your collateral and token two will be the asset that you're able to borrow so uh there is an asymmetry there which is something different from how a typical amm works up to now and uh this is what enables to kind of distinguish uh what is shorting and what is longing versus V token and I mean of course um so that's on the smart contract level on the front end level this can be much much more streamlined and uh for example one could

imagine starting off with one one particular stable coin uh and just showing the pairs that have this stable coin as an asset that can be borrowed and not showing any other pairs so to start with I see okay so the the smart contract is permissionless it's like Unis swap smart contract is permissionless but the front end is what enforces that um you know canonical distinction between an altcoin as token one and a stable coin as token two so basically borrowers can borrow or borrowers can borrow against their collateral if there is enough liquidity in the amm and um if someone deposits

stable coins into a lending pool to be borrowed against for that particular collateral can you talk a little bit about the lender's experience and and what that looks like yeah so we tried to make the lender's experience as simple as possible because uh what we imagine is that there's going to be a lot of different pools which are completely isolated so in principle if you want to be an active lender over uh many different pools you would have to manage your positions very actively which is not typically not a thing that people want to do in defi so we thought that it's very important to limit the downside that the lenders can experience which means that as lender

you're protected at the Smart cont contract level from things like defaults and so on so even in the very worst case when somebody uh kind of defaults you don't lose anything because the the smart contracts make sure that there is no bad debt and the fact that there is no bad debt means that as a lender you will be made whole um having said that the lender kind of user journey is relatively simple so as a lender you choose the uh pool that you want to interact with so U maybe you want again to deposit some usdt into the Pepa usdt

pool and people will be able to borrow your usdt uh in return for that you get some interest so there's an annual interest rate of 15% which is again fixed over all of the pools at uh V1 of hoou and that's the interest that you get so uh you put dollars in you put usdt in and after some period of time you just get more usdt and if people default well you're still made hole so that's kind of the lender experience on high wow right and they're they're made whole because the collateral is always available to sell on the amm and uh you have some things in place that prevent the amm or

the the bad debt from being created and know have a couple mechanisms in there that I don't think we'll have time to cover today but things like virtual reserves and the Slow Burn of LP tokens I did want to cover Economic Security considerations like the the security assumptions of the protocol but I think what might be more valuable is asking the audience what they would like to know um if there's any part of the hoyu protocol that's still unclear would love to hear about that either if people want to post a comment or raise your hand i''d be happy to bring you up on stage to ask Yogen us a question um just to you know clarify and make sure that uh

we're communicating the hu protocol properly because there's it's a very elegant protocol and um and I just hope we can give a good enough picture here but uh so if anyone has a question just feel free to raise your hand or post a comment and if not then I will ask you about some of the security assumptions and then um you know couple couple final questions all right I'm not seeing anything yet from anyone so I'll assume

the audience is following um May yogas can can you talk a little bit about like what are the security assumptions of the protocol what prevents um you know I guess what other features should we know about well so it depends on what kind of attacks one is thinking about so there are many types of attacks that we have seen in Defi and I mean um of course it's impossible to go through all of those uh in a in a Twitter space but so for example one attack that you might think about is um somebody adds a bunch of liquidity to some uh pool and

then uh some other user takes out a loan and then the first one the liquidity provider uh immediately removes this liquidity so in such a situation you would imagine that the user who uh took a loan out so the borrower would get liquidated and that's not a very good situation because it's kind of not their fault I mean they they saw this liquidity they took out a loan they put in some legit collateral and the price of the asset maybe did not even move too much but now since the liquidity is insufficient the protocol would liquidate them so that's not a good situation um and this I would consider an attack because um in principle one

could try to profit from such a situation as this very active liquidity provider um in in this example and uh in in high we tried to prevent this by having a longer period over which the liquidity is gradually removed so adding liquidity is instant but removing liquidity uh takes a week and it takes two onchain actions start first of all expressing an intent saying that I I want to remove my liquidity and then actually Redeeming the uh liquidity at the end of the week so uh this basically means that as a borrower you won't end

up being liquidated just because some liquidity provider changed their mind and decided to remove all of their liquidity instantly instead you would get a prior warning of say a week and during this week the liquidity would be gradually going down which you of course would be able to to kind of watch and be alerted about so that's just one of the mechanisms and one of the attacks that we have considered um in order to make the protocol safe and uh hopefully impossible to exploit from many different angles and so imagining in that time that the liquidity in the pool is taken

out immediately so if a a an LP withdraws their tokens then that liquidity is pulled from the the pool but it's not available for the liquidity provider until the end of the week or so yeah that's that's absolutely right yes okay cool and um so maybe a second type of attack I'm imagining like a if a Trader wants to get um cheaper tokens let's say they're a whale of some altcoin um they could sell their tokens into the amm trigger a liquidation then caus the price to go even lower what prevents them from doing that is that a

viable attack yeah so that's that's a great question this is uh an attack that we have thought about as well and uh here the the game would be just as you said try to kind of move the price down artificially so the price should be at I don't know one but due to the liquidation it went down to .9 and this 10% is uh artificial in the sense that uh somebody will orbit away at some point in time so in order to get rid of this attack we have a price DEC Dynamic where after a

liquidation uh the buy and sell prices of a token are slightly different and they converge with each other over time what this means is that if there was a liquidation just now you are able to buy the tokens as if this liquidation did not happen um and over a period period of time um this uh liquidation kind of starts being reflected in the amm so if this is not an attack but an actual Market Dynamic this means that uh again after some time passes the prices the buy and sell prices of an altcoin converge and you can trade as usual but

this whale which you mentioned in this attack would not be able to exploit the system and would not be able to profit from the fact that uh some liquidation was triggered interesting so you have like a cooldown period basically that's right that's right so there's a Divergence of prices and this Divergent goes goes to zero the prices converge over some cool down period H and are there other considerations like other attacks that are theoretically possible that you thought about that um are prevented somehow in the protocol or are there are there like viable attacks that you think Could Happen things that

you're concerned about well so at this point in time I would say that I'm pretty confident um I was not able to think of any like real threats and um also we have talked to a bunch of different also very very smart people who also tried pretty hard to come up with various stxs and so far we haven't gotten anything that is really threatening I mean Protocols of this level of complexity one of the considerations is that it uh your smart contract might end up in a situation where um the state is so complex that to get out of that state it would take more

than the whole block of G for example to kind of to move forward with a with a protocol and this is something that we have very deeply thought about and U I think that we came up with a pretty elegant mechanism to not end up in such situation of course um the gas usage is still going to be much higher than a traditional amm if you just want to do some swaps but um on the other hand the denial of service this gas denial of service attacks seem to be impossible with hu which U I'm very very proud of it's really interesting that that you would comment on the complexity of hoyu because when I see it it's like this is

a super elegant protocol you know I think complexity to me is um where you have many different parameters that are clunky and uh you know features that are kind of Band-Aids to issues um that that rise in the the basic design of a protocol but in hu I feel like everything is interconnected in a way that weaves together really well so I would I would describe it as the opposite of complex but I think I understand what you're saying which is um the protocol could be used so much that the cost of storing the data and doing all of the uh the many operations that are involved in hoou could become

so expensive that it it costs more to um to fulfill those or to do those operations on ethereum than could possibly be paid in gas but you've got some solutions to that yeah that that's that's completely right I mean even simple ideas can be implemented in a way that is not optimal and if you do that I mean you you will end up in trouble basically and the the reason the kind of fundamental reason for that is that the ethereum or the evm the ethereum virtual machine is something that only supports very simple calculations so if you go uh towards not

optimized calculations or towards something uh relatively sophisticated you will very quickly hit its limits and U I mean of course we have to operate with that in mind okay so uh we're at the top of the hour and I I want to ask one or maybe be two quick final questions the first is how does this protocol make money and the second I'll I'll get to after so now we have a very simple uh scheme where the borrower pays uh a 0.5% flat fee uh to the protocol and that's kind of the protocol fee uh

that's how the protocol could be profitable and have Revenue okay cool cool and I I asked that because you we're talking about protocol design tokenomics and um what we see with Unis swap is that they have solved for two of the three principles of tokenomics which are the utility the protocol utility that the protocol provides to all the groups of users the Traders the LPS but uh it it has not captured a meaningful amount of value they have the fee switch they've barely turned it on for a couple pools and I don't think it's it's likely that there are they are going to be able to turn it on from most pools um but even if they

do they're not they're not actually acing that value to the Token they're giving it to the Unis swap Foundation um Unis swap Labs uh and then they also have Economic Security right the incentives of the protocol are compatible which seems to me they are compatible in hoyu as well and um but I I love to hear that there is a way for the protocol to make money because that means that you have all three principles of tokenomics and the protocols that successfully solve for all three of these or include all three of these principles and their design are extremely rare and furthermore the censorship resistant protocols that do this are um are are few and far between um I could probably count on one or

maybe both hands the the number of protocols that fit this description so it's uh really exciting to me to see hoyu doing all of these things and um I'm looking forward to to seeing what's next for you do you have an idea of when you're launching or are you guys still pretty far out from that I would say that we are uh pretty close to launching I I can confidently say that we will launch this year and uh I think that it is very realistic to launch in the next quarter so in Q2 so in the first half but the second quarter of the year I mean we do still have a couple of steps remaining um we have to

go through an audit uh we have to maybe do a little bit more work on the uh you know front end side on the marketing and and business sides but as a protocol the smart contracts are on the test net already they're very close to being feature complete so I think that we can launch relatively soon awesome well fantastic this has been a great space thanks for coming on and talking about hoyu today yogas it's been a pleasure and I'm really looking forward at seeing what what the future holds for ho thanks Aon for all of the great questions and uh I really had fun so this was great thanks a awesome yeah my pleasure thank you to the audience as

well for coming on and listening and for your questions um looking forward to uh the next protocol Spotlight we'll update you guys and uh share that the next week or so but thanks Yan us for coming on and looking forward to talking with you again soon