DeFi Porn: Rewinding the Data
LisCon 2021 · 20 Oct 2021 · 10:57
Raphaël Mazet gives a talk titled "DeFi Porn: Rewinding the Data" at LisCon 2021 in Lisbon. The title points to a look back at data from decentralized finance. LisCon is described as a gathering of builders, thinkers and creators.
Speakers
Topics
From LisCon 2021, hosted by LisCon.
Transcript
all right everyone hi i'm uh i'm raphael i'm from simplify and i'm here to talk to you about defy porn because i'm going to be spraying some data so if you're in front you know take cover and uh and actually thank you and actually uh anybody who's you know of a sensitive disposition maybe it's time to leave the room because it's gonna get heavy it's gonna heavy especially as it's porn that's gonna talk about apes but not this kind of ape this kind of ape this kind of vape is your typical yield farmer who's discovering how much profit he's made when he's using simplify so
this is the kind of vape we're gonna be talking about you can tell from his expression it's good um so just a little bit of context before i get to the pawn part uh we we're all d fires at simplify and typically if you want to get a good honest day's work uh what you're looking at is ap wise right maybe you go to coingecko you look at the do i have a laser on here no you look at the at the apy that any given pool is giving you and you a pin but the problem is that after a couple of weeks you look at the money that you have left and you realize that apy is a total [ __ ] because
you've lost all your money uh so while you were really excited about it actually you've lost everything and that's because apys as you know are just based on the current token prices on the current reserve prices and they give you absolutely no data on on what's going to happen in the future right the apy can be a thousand percent today it can be a thousand percent tomorrow but in between you've lost half your money um so really we set up simplify to answer the question how am i doing how am i actually doing with my with my returns and it's actually not that easy to do because if you're a typical dj and your yield farming
these are the steps that you have to take to actually calculate your rri right so if on the yield farm itself at the yield farm level you're going to have to look at the current price of the reward token you're going to have to look at the historical price of the reward token if you claimed some to know when you realized those gains right and you need to know also what was the historical price of the lp token that you staked at the moment that you staked it which chases to the liquidity pool because you can't really talk about roi on the yield farm without looking at the underlying return or loss you know the profit or loss from the underlying liquidity pool so in order to look at that you need to look at what the historical price of the lp token was um you need to look at the
the position in the returns because the of the reserves sorry because the reserves of any given liquidity pool can vary a lot um and if you're staking only part of your liquidity pool uh then you need to aggregate what you've staked and what you haven't staked and then to figure out the price of the lp token anyway you also have to look at the price of the underlying assets on a historical basis right and then after all of that you still have to take into account the uh the gas costs especially if you're doing defy on ethereum so these are a lot of steps that you need to do and that's why a lot of people don't bother doing it right who here is doing has either coded something up or is managing this on their on their spreadsheets
i see no hands i don't know if you're shy or you do the spreadsheets right it's a pain in the in the butt right yeah so it's hard enough for one person to do it but if you want to do it systematically it's really hard to scale that up so the way that we're doing it is actually using the graph and the graph has a lot of a lot of advantages it means that programmatically something like sushi swap for example uh has a factory model so you can just catch all of the all of the pools across sushi swaps and the farms and start indexing all of that data the historical reserves and and all of this stuff um and what's also really interesting about the graph is that
anybody can create a sub graph for their own d5 protocol so you don't actually need to wait for us to integrate with simplify and give roi data to your users you can just create your own subgraph and uh and do it that way and it's actually quite easy to do so you just go visit docs.simplify.finance and i promise you you'll have a good time it's well explained we've got some walkthroughs i know i'm teasing you i'm getting to the porn but i just need to run through a few things a few other things first so just to recap the full architecture of simplify is that we have our sub graphs so rari capital for example is right now building a sub graph for there for their
protocol right on simplify so they can they can give the ri data to their users anybody can build that we have price feeds that are coming from various sources we pull everything into a back end um that does all the indexing and also does all the roi calculations and then we serve that through an api uh that goes into the simple five front end but anybody can use as well so the um ah that's better so the the simplified front end is looks something like this for any given liquidity pool you'll just be able to go in and see uh how much you're making from the liquidity pool but also what you're making from the connected yield farms so if you've ever wondered
if the rewards that you're making from yield farming are compensating for your impermanent loss you just use simplify and it gives it to you in one go so oh wait now that went too fast now for the now for the pawn for the data pawn there we go so simplify right now we're tracking 95 000 tokens including composite tokens like lp tokens and things like that 55 000 defy markets we've got 30 million pricing data points and we're uh we're in that we've got 60 million subgraph entities as well which is a
[ __ ] done if you've uh if you've done sub graphs and that's only on eth main net and that's only with the the current protocols that we're integrated with uh like sushi uni curve steak dao m stable as i said rari is coming so that's that's the pawn part if you want to use simplify it's really simple we're going to launch the beta in just a couple of days scan this go onto the discord channel type slash waitlist and you'll get your access code as soon as it's uh as soon as it's ready i'll come back to this in a second because i'll also explain to you how you can get an nft so
just a few more things before there we go i get to the end really quickly um roi calculations are not the only thing that simplify wants to do simplify actually wants to simplify your default life so the first thing you can do is check for your roi which funds which of your investments are performing or not performing the next steps on that are just integrating as many protocols as possible please come and contact us if you want your protocol to be indexed we can we can help you with building your own sub graphs is really simple relatively simple and the next step is also going into the layer twos and evm compatibles right so you go in check whether you're making a profit or a loss what's performing what's not performing and then the second part
which is going to come at the end of this year is how to optimize your portfolio because of all of the data that we have we can tell you other pools that are returning more or we can tell you other accounts that are investing more or less like you and what they're invested in what you should potentially look at and the the possibilities on that are endless we'll do some predictive analytics next year and all kinds of funky stuff that you can build on as well and then the final thing that we're building is the ability to well you've seen what's not working you've got some suggestions on how to optimize your portfolio so just one click beam into um the the pools that that are recommended so that you can optimize
your your portfolio so that's the whole road map here's that uh qr code again so now you can you can scan it properly also once you're on the discord go to the announcements channel and look for the announcement where you can get this beautiful elizabeth nft right here uh you just have to put in your your discord handle and the polygon address and we'll do the the drop in a few days and you'll have this one as an animated character and eventually maybe we launch a token maybe the nft comes in handy at that point perhaps i don't know but and if you want to get in touch here are contact details so thank you very much if you have any questions i'm i'm
opening to listening to them because we are hi yeah uh cool cool product cool stuff i like the position part i think uh you are also tracking historical data right yes yeah so my point is i see that i understand from your presentation that you have like around five seven platform integrated right in one chain me as a ill farmer i have 100 platform
how are you gonna solve it with historical data okay so this is this is the whole point of integrating with the graph actually um what i was saying is there's nobody i think that can keep up with the the scale of innovation that's happening in d5 right now right so we've integrated the main ones we keep integrating but what we what we're hoping to achieve here by visiting here is to let people know that they can just very easily create a subgraph for their defy protocol and immediately offer the benefits of roi calculations to their users and we've got like a ton of walkthroughs anybody can create the subgraph you give out a grant get a community member to build the the subgraph it's we've got everything for them to do it
we're going to start integrating layer twos a lot of them are forks so that's how we want to stay up to date thank you