How to Provide a Fully Onchain dApp in DeFi
ETHBarcelona Talks · July 2024 · 14:36
Solene Daviaud explains how to deliver a fully onchain dapp in DeFi. The talk covers what runs onchain, what is usually left off it and the trade-offs for developers and users. It considers what it takes to host both logic and interface without a central server. Presented at ETHBarcelona.
Speakers
Topics
From ETHBarcelona Talks, hosted by ETH Barcelona.
Transcript
so hi everyone I'm really happy to be my name is and I'm the CEO of soad is a full a based on Main still in and I'm also the fing of where many International woman West stre thanks to the AR and stuff like that so today we are going to talk about theorization of div which is incomplete and difficult to implement in the current protocols but this is a Neal topic to consider in order to move on the right direction for the future of defi so how to provide the fly
def so we will be discussing about this topic starting with highlighting the quantify issues on the ecosystem introducing T components that are FR front and autonomous smart contracts by using the example of D then by using the two components and in particular autonomous smart contracts we will focus on our concept of autonomous liquidity it's a new type of liquidity management running fully engine and without op initiators so let's start by questioning the dis authorization of the current defile so dis authorization is a complex
term in the in this ecosystem and several debates are emerging mostly from the point of view of mic regulation about what is a fully decentralized implication so according to us DOA and the coer of n a d is say deiz when all this mechanism doesn't interact with any external dependency so that means the protocols Works entirely on the blockchain and without op initiators so blockchain is decentralized in secure a protocol can benefit from the high level of security by by being entirely Unchained so today a few def protocol can be qualified as
primitive but it's really important to become unchain to increas security and also because we are in building the foundation of our ecosystem so the results of this lack of theorization are the increase in term of ax with almost billion do St the last year there are also many human providing for liquidity provider liquidity manager sorry and many frontend are C compromised so why is this issue the main reason is the centralization of D5 the centralization depends in particular
to components mechanism are used by Def so firstly the majority of Def users can interact with Ds by using cized font so it's a real issue secondly there are also a lot of dependency providing for Oracle cized Oracle even if the cized Oracle are emerging and finally as the user is still complex to manage the liquidity by himself so user needs to delegate it to to liquidity manager or V so so from now I'm going to present two essal components that are the unchain F
and autonomous Mar contracts in order to build the fully enchia so we will take the example of before to start it's to know that it is not yet in position to include the sh for the moment do USA is buil on the Masa blockchain currently tested Masa offers interesting FES like on and autous contracts to provide the free and CH they also provide the growth metrics to respect decentralization security and scab if you are interested Main ised in us and all the smart contract are in are in St
SCP so uh if anyone going to CC m have a boost doing this so you can talk with the c if you want so let's St the first component that is the engine FR today a lot of reports are focus on back end security and the arur are increasingly attacking the F of it was a case for cure with the DNS IG ke in 2022 to do this our C created a copy of pure your DNS server after that we the DNS points to a website and put a Min
contract on this homepage so other user who interacted with this website we serve approv our request for executing wrong transaction so what alternative already exist to provide the decentralizing front to increase Security in term of solution we know ipfs ands the two application works together and are complementary curve explor this possibility just after the RO that I previously explained and to talk a little bit about TFS each file is poed by a server using by using the P system so this
system allows allows to keep this file for AED period of time and if this F become npin it can not no longer available to replicate it on the rest of the server so it can disappear so to avoid this kind of program it's definitely important to incentive The Binding system in order to ensure the fight distribution and regarding enss this only to obtain the domain name and we need to use the centralized application to register it on the blockchain otherwise we have other application uh like r or ICP and uh I'm going to introduce to a new
one uh this uh M station so for my station musle to store the the front end and upload it directly on the blockchain so to do this we are to register the D DNS on the m Network first then we need to design the D by incorporating the most important element into a smart contract and after that we can upad it directly on the blockchain it's important to know that Masa works with deterministic smart contract so that mean they can interact directly
with the front end now on the user side us just need to upload the Massa pin course M station to benefit from a secure access to DOA and other application then user can type DOA Masa on the browser it can interact directly to DOA with a fully fully security so to conclud on this first component DOA has a deiz front that is sensorship resistance from now let's move on the second component the autonomous MCTS it's really important to to to know this
concept because in order to create a fully unchain J and remove any exter dependencies like goods and may you you you use autonomous Mar TRS today all Mar that you know are in some way say centralized because they here manual the manual action or server centralization shall wake up the smart contracts recently a number of projects have used this term of automate smart contracts because thanks to the an infrastructure they have been able to generate boths to automated liquidation for example but this kind of s still introduce a point of failure because the
CL infrastructure relies on caliz server like Amazon web service so this kind of server is done sever Time by so it's a real issue for thei and at this moment um MAA has introduced autonomous smart contract so the smart contracts wer by themselves without any option initiators the only thing that you need to do is to set up smart contract position like time events in order to wake up and the and from before the B several projects such as optimism have already created
Pro of Concepts on autonomous Mar contracts following the Bedrock update but optimism doesn't use this term of autonomous Mar contract yet so this thing is the training order executed by a classic smart contract so we can see and R the arle that operat of sh and which can be a source of of error due to a lack of relability it was the for maker D in 2020 when the rle didn't indicate the right price and proceed to liquidation for a lose of 4 billion from now let's take the same
transaction by using autonomous smart contracts so the smart contract saves the price on the blockchain As anord and once the rise price is reached the smart contract execute and the result of ch initiators now I'm happy to introduce you to autonomous liquidity concept designed bya this a really New Concept and doesn't choose any any defi protocol because they don't have any access to the SM contract autonomous contracts technology forment so before introduce introducing autonomous liquidity let's start bying
the management so when the user Deposit liity they are to managing it firstly they can replace the liquidity manually which is very time consuming secondly they can use both to automate it the liquidity manager but can need to fin can use a liquidity manager which is in part and can Le to different errors so to conclude the liquidity providing experence is still complex and not very secure for us or know that's why daa has introduced the concept of
autonomous so it's a new type of liquidity management using the autonomous Mar contracts so ATP can automate the management of their liquidity without initiators like your boats or vle or units the only thing that you need to do is to deposit their liquidity and in one click and after that the liquidity will be automatically replaced without any intervention that means the user doesn't need to manage the liquidity by himself or manage it with OP initiators so there are three benefits uh to for user to use autonomous liity the first is to enance the user experience improve security and
help to generate more y for it Fe so of course it's an option and not mandatory to use it with our protocol you can manage your liqu by yourself if you want in a classic way forc everyone will be able to test autonomous liquidity with open beta for the moment the beta testing is UN for our beta tester with more than 20 2 this so to Su Up daa is on the Massa
chain and relies on two technical proes the front of on the blockchain and aut SM contracts to optimize the main the main mechanism of defi at the lunch several feature will be available like swap autonomous liquidity complex in order p on chain such as DCA or training stock and many more and three level of user interface and easy gate to en to build in the future we plan to do an intensive research dment to De our protocol on other chain so today we are a team of five
contendors with three technical profiles and two business Prof we've been working on daa for one year now before that we took part A number of AC that we have one together in Paris lion Miami and San Francisco and after that we decided to trate DOA because we believe on the real decentralization of defi thank you for your listening you can scan the C to join our community and many more if you want [Applause]