Innovating in Decentralized Markets - DavideFi (LFJ)
ETHMilan 2024 · 18 Oct 2024 · 19:40
DaviDeFi, general manager of LFJ (formerly Trader Joe), explains how decentralized exchanges and liquidity pools work and where DEX design is heading. The talk moves from constant product pools to concentrated liquidity, then to LFJ's liquidity book with discrete price bins, vote-escrow style emissions decided by token stakers, and a bin-targeted liquidity incentive program. A clear, builder-level introduction to AMM mechanics, impermanent loss and onchain liquidity incentives.
Speakers
Topics
From ETHMilan 2024, hosted by ETH Milan.
Transcript
we're going to start so I have the great honor right now to announce myself on the stage as I'll be the next speaker I Am David defi the GM which stands for general manager of lfj uh lfj stands for let's Joe and we are very happy to have you here um I am going to talk about defi today with a different angle that I think all other presentations usually have when I speak on a stage I think that people will like to hear things that they cannot normally hear all often in the
standard places so I'll try to say many things and try to and focus on some topics about the centralized Finance uh nering out a bit on the topics because I hope that you all have some dness inside and this is going to be interesting so lfj is the One-Stop shop Dex of avalanche where we are the market leader since three years and we are also on arbitro uh One-Stop shop the central exchange means that we offer several features that are available as a decentralized Marketplace and these
features are uh are some that I hope you all have participated from time to time and they like to get some hands raised if you have ever traded on a the Cent exchange before was done a DEX transaction here all right there is a still a lot to what I still think that we are so early because whenever I am in front of crowds in web 3 many still haven't done their first onchain transaction and that blows my mind web 3 and crypto in my mind is born on chain as a decentralized product uh the all
detos was not your key not your coin and self- custody with this type of approach to uh to to crypto when web 3 wasn't even existing at the time users only had a few options to trade their assets at the time there were Central there were a few Central exchanges 10 years ago allowing swaps to happen on uh centralized platforms and then with the launch of ethereum and smart contracts the first transaction started to openen on chain and that was a true renassance when in 2020 uh the F the defi the famous defi summer was was ignited there W it to in
my mind I thought wow cryptocurrencies and blockchains were meant for this I want to interact with a permanent immutable database and have the capability to all my assets and to continuously engage with these type of assets uh where in the chain that I like to transact and that's the centralized Trading decentralized trading happens on liquidity pools and we are going to explore the topic of liquidity pools today because it's a topic that even if people have run some swaps on a chain they might not yet
understand fully what how a liquidity Pool Works and our liquidity pools uh determine the outcome of your transaction as mentioned the def SU uh started when uh the constant product formula which anyone that did a interaction with a Unis with an old Unis swap V1 but uniswap V2 is the most popular transaction that's a constant product formula where the reserve of two asset uh X and Y determine the and the ratio between the two assets ass
determines the price if you swap token a for token B you are uh changing the ratio of Reserve within the liquidity pool and this change of the reserve determines the price change according to a curve that is infinite so with uh with the decentralized liquidity pool true pulled assets can go from almost zero to infinite as long as there is a reserve of two assets that can be swapped W with one another H and the liquidity pool that offers this swap uh next gen innovation in the space uh um was then
brought to the market the issue with uh uh with the previous example of liquidity is that it it is not extremely Capital efficient as with the pools that we have seen here the constant product formula liquidity providers uh are providing price from zero to infinite we have said so they cannot really determine the range where they would like to earn fees uh from from uh liquidity Market why do liquidity providers deploy liquidity on uh liquidity Market uh to generate fees that are charged with any Swap and these fees are are the compens ation to the to
the liquidity providers for impermanent loss which is a complex topic we won't touch today because it's all whole set of understanding of providing liquidity but uh the concentrated liquidity model basically allows liquidity provider to decide the specific range where they want to provide their liquidity limiting it in the extension compared to what they were doing before uh providing liquidity on an infinite curve now they follow the orange curve the V3 style uh pool in this example where you determine the range where you're providing
liquidity so from one price to the uh to another price and out if the price moves Beyond these ranges you are going to end up fully in the asset a or asset B and they won't change anymore because the assets have been because your range has been completely depleted and that impacts higher impermanent loss impermanent loss is the loss you are making from your liquidity position if you if you actually make it permanent Why by withdrawing the liquidity it's impermanent until the position is withdrawn because you never know where
if the price is going to reach again uh the range and uh we have provided a a unique we have we as a I would say Software House of the centralized products it provided a unique uh protocol called liquidity book that offers uh a unique take on concentrated liquidity instead of deploying on a like Unis wb3 on a wide range of liquidity and directly offering the range users can decide where to place the liquidity and Beyond just deciding uh the shape that they can uh that they want to
deploy they can actually have quite some fun in uh in Prov adding and removing liquidity at whichever price point is desired without having to worry about uh the previous position that you have deployed and this is an innovation that we have brought to the market Market almost two years ago but I would like to talk about some more Innovation so as a software house we have experimented with a few different takes on how to run Defi and we are we had actually probably been the first uh protocol that kickstarted a
new type of launching on a new chain that will that is uh by running a let's call it franchise uh to make it understandable but we call it family Fork because from the same team but on a different chain with a new token this allowed us to reink how to launch the centralized exchange and to how to make so how to catch up on some innovations that have appear to the market since our first loue by in by introducing some new products into the space and one of the first introduction that we wanted to
bring to the market was our own take on VTO economics as a as a company of Engineers full of smart brains that keep building very Innovative products and trve to build the the centralized only products that anyone on chain can fully trust because they are all on chain they're all visible when you interact with a smart contract you see you can see the entire transaction and their outcome so we Embrace we extremely embrace the EOS of fully decentralized and un mutable markets uh so what we could what we decided to do
was to take a model that probably uh some people know as v33 uh popularized by solidly Forks that you might have heard and actually bring this VTO Economist to the market so what is v toomics v toomics is uh a platforms where users that all the token in in our example the native the the native token of the Dex can St it into a contract to receive voting emission specifically uh up to one week voting so for every one more State you'll receive 1,000
votes on chain and then what do you do with these votes that have been granted to you on chain uh we had decided to completely decentralize the liquidity emission by having the the most takers decide where ad the mission goes and we wrote all the code ourself it took a lot of time but we are very proud of having built unique smart contracts that are not uh others other protocols Forks anymore and everything we do is built in house because we want we like to have our Engineers keep coming up with new ideas and with this new methodology uh a
more older which is a participant to the merch Mo the centralized exchange can decide to vote vote for emission of a pool so for example in the F in the second uh pool from this list we have the more MNT token and we have votes 18% 03 of votes What's Happening Here is that 18.03% of all more stakers that are voting for a market are generating a emission that goes to the liquidity providers and this case it's 16,99 19 and what the what why will the
mission in a decentralized market be important because as you are a as the this user is a protocol participant they can decide to provide liquidity in a pool liquidity pools uh besides fees can gain emission from liquidity markets so these emissions from liquidity markets should come from somewhere normally is a mission that the protocol decides to do it it it's a process that we wanted to decentralize fully in this case and that's why uh we put it up to all participants to decide to whom do we emit the mo token which is part of the Tok liquidity emission uh tokenomics
users decide and if they want to provide liquidity and a liquidity pool they can participate but actually everyone that decides to participate to this Market gets some rewards we have talk about how liquidity pool allows to deploy any type of shapes but how does a liquidity provider actually manage to earn some some fees out of this there's Mo most people are used to stake 50 50% of the tokens H in a pool and get some emission of some coins well we uh wanted to bring Innovation also in this space and that's why we had created
MDMA uh liquidity emission plan MDMA stands for more discretized maker um emission and what we uh wanted to do with this type of protocol is to have Dynamic uh discretization discretization means where do you put uh liquidity for uh for emission particip an in the first picture to the left what you're seeing is a example on how a user might decide thanks to the uh capability of liquidity book to deploy any type of shape that you wish on a market to provide any amount you want of token X and any
amount of token y to decide the shape maybe you like to have more tokens from one specific asset to be pulled and the assets moved and when price moves from the left to the right you are earning the swap fees as everyone does with the MDMA product uh that you can see on the arrows to the right we are awarding the mission that was decided before by the decentralized voters of the protocol to reward in this specific example chose specific beIN a beIN is one unique price point with this uh liquidity reward
mechanism what we are saying is the two beans the current price and the minus 025 which is the second bin gets rewarded with emission so this means that if anyone is providing liquidity exactly at the two specific price point that we have that we are seeing here oh actually I see it on the better screen I see that there was invisible so there is a bar that is selecting this two specific uh this two specific beans they are the beans that get rewarded while price moves uh because users make swaps uh the reserve of of the of the active bin gets
depleted and price moves in the direction where the swap was made when the liquidity beIN has been depleted and the MDMA programs follows always the active price and rewards in a completely decentralized way the active bin wherever it is every single block so whenever uh liquidity providers have the provided liquidity on a range and it happen to be at any time uh part of the range that we are the that we are rewarding they get extra emission not just the swap fees but the emission from
the liquidity protocol and this is a second uh Innovation that we have brought to the market I'd love to talk so much am out liquidity pool I could not stop I could continue for the entire day and if you block me outside you can definitely try to have me engage forever about this topic but this is this was to specifically to the centralized products that uh have brought innovation in the market with one key aspects that is extremely important when have as a decentralized pro protocol we love to build products that work on chain and
that are verifiable and that's and that are new and that stimulate the creativity of the smart contract developers uh that contrib to the protocol so here what we have seen for example is that what so to let you understand in a bit of a nerdier way uh here this a rabby wallet uh uh simulation of deploying the exas shape to the left so what I was doing here to the left results in this what you are seeing is every single liquidity bin which is a reserve of liquidity gets its amount of tokens when we are getting uh
a specific amount this amount corresponding to the liquidity Reserve gets deployed into a liquidity bin and if you want to withdraw only one or two specific bins uh in this methodology you'll just take out one or whichever of these you like to do I I hope that in the time I've had to talk to you I've stimulated a bit your curiosity into what the providing liquidity on a liquidity Market is uh the time to learn how to make a swap or how to provide liquidity on on chain it's never too late and I feel that we are always very
early as the hands raise for people that swapped on chain was still uh was still on as was still on a phase that I think can grow exponentially so thank you thank you very much for listening to me and we are ready to hand over to the next speaker the stage in one minute thank you very much
Related talks
- ETHMilan26 - PropAMM, the revolution behind onchain liquidity
- ETHMilan26 - DeFi Trends what's ahead for decentralized finance
- The MetaDEX Thesis: Rewriting the Rules of DeFi
- The Art of AMM 🦄 Anton Bukov, co-founder 1inch
- Yield Basis: Solving Impermanent Loss in DeFi
- Making DeFi Truly Cross-Chain
- Uniswap V4; with a focus on Uniswap Hooks
- Demystifying Options in DeFi: A Deep Dive by Panoptic | ETHDenver 2023
- Why builders are flocking to interchain DeFi and how users can reap the benefits
