<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Vii Sundaram on Medium]]></title>
        <description><![CDATA[Stories by Vii Sundaram on Medium]]></description>
        <link>https://medium.com/@vii.sundaram?source=rss-51203b4b69fe------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*3zNPavQyQUaJ9biv307nOg.jpeg</url>
            <title>Stories by Vii Sundaram on Medium</title>
            <link>https://medium.com/@vii.sundaram?source=rss-51203b4b69fe------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 00:58:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vii.sundaram/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Lendroid is Now on Mainnet. Let’s Build Awesome Stuff Together!]]></title>
            <link>https://medium.com/lendroid/lendroid-is-now-on-mainnet-lets-build-awesome-stuff-together-e142f1ebe1b3?source=rss-51203b4b69fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/e142f1ebe1b3</guid>
            <category><![CDATA[lendroid]]></category>
            <category><![CDATA[protocol]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[lending]]></category>
            <dc:creator><![CDATA[Vii Sundaram]]></dc:creator>
            <pubDate>Sun, 08 Sep 2019 07:16:22 GMT</pubDate>
            <atom:updated>2019-09-08T07:22:51.087Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Based on inputs from the community, the protocol will continue to evolve with robustness, scalability and collaboration in mind.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2e_LRrY65SO2-Hpo" /></figure><p>Today, V1 of the Lendroid protocol goes mainnet. This is a proud moment for all of us at Lendroid and also marks a milestone in an exciting journey. We are truly grateful for the steadfast support of our community and the invaluable help and insights from our collaborators.</p><p>This is the contract address of the protocol:<br><strong><em>0x35042608a9a7b7E3973f4e028Da3394Cf1e7d35C</em></strong></p><p><strong>Protocol features, audits, and our bug bounty program</strong></p><p>Here is an overview of what is possible with this version of the protocol:</p><ol><li>Order fill + cancel</li><li>Loan approval</li><li>Fixed interest</li><li>Loan pre-closure</li><li>Position topup + liquidation</li><li>Non-custodial token transfers</li><li>Support for ERC20 tokens. Currently DAI and WETH are enabled</li></ol><p>The audit certificate of the Lendroid smart contract from Quantstamp can be accessed <a href="https://certificate.quantstamp.com/view/lendroid-protocol-version-1-0">here</a>.</p><p>Besides a robust dev process and full audit, we also believe an active hacker community that discovers hidden bugs, and a bounty program that reflects proper gratitude keeps a smart contract airtight. We invite bounty hunters to our bug bounty program, which follows the <a href="https://www.owasp.org/index.php/OWASP_Risk_Rating_Methodology">OWASP Risk Rating methodology</a>, and offer rewards up to USD 50,000 depending on the severity of the risk(s) identified. To report bugs, you are encouraged to reach out to us at <a href="/service/mailto:connect@lendroid.com">connect@lendroid.com</a> and help provide the following details:</p><ol><li>Bug identified</li><li>Steps to reproduce the bug</li><li>Possible fixes</li></ol><p>Alternatively, you can also create an issue on our <a href="https://github.com/lendroidproject/protocol.1.0">Github repository</a>. The severity and reward amount will be determined based on the discretion of the Lendroid team.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/0*sDqGSnGwL_ESCnBD" /><figcaption><strong>Figure 1 : OWASP Risk rating methodology</strong></figcaption></figure><p><strong>Building on Lendroid as a Keeper — Relayer / Wrangler Tools</strong></p><p>As a foundation, Lendroid is an enabler for complex financial instruments on the blockchain. And the solution to filling the vacuum of liquidity, great UX and on-chain efficiency lies in a vibrant keeper ecosystem. Therefore, to make the protocol usable on the mainnet, Relayers and Wranglers must be built on top of the protocol. While there is no restriction to how many Relayers can be built, loans on Lendroid need to be approved by Wranglers.</p><p>To become a Relayer on Lendroid, we have tried to make it easy to build on top of the protocol by not only suggesting ideas of possible dApps, but also by strengthening our dev tools, including a full-fledged UI template, which you can simply make your own. Please refer to our comprehensive Relayer guide available <a href="https://blog.lendroid.com/how-to-be-a-relayer-on-the-lendroid-protocol-ecfc74fd12fc">here</a>. For ideas on different types of Relayers that can be built, refer <a href="https://blog.lendroid.com/were-at-eth-india-again-b1881ce01427">here</a>.</p><p>To become a Wrangler, please reach out to us via Telegram or send an email to <a href="/service/mailto:connect@lendroid.com">connect@lendroid.com</a>.</p><p><strong>Building on Lendroid as a Keeper — Terms &amp; Conditions</strong></p><p>Before building on Lendroid, we encourage all potential Keepers to please read the following:</p><p>NOTICE:</p><p>The Lendroid protocol smart contract and its associated documentation namely lendroid.js (collectively “Lendroid Protocol”) shall only be accessed through authorized channels. Any other means or channels for obtaining the Lendroid Protocol in not recommended. Interested Parties are encouraged to use the following channels to access: Lendroid.com or github.com/lendroidproject. The deployed smart contract is immutable, which means the creator or deployer cannot change or modify it in any manner. This is the nature of blockchain software, and is not particular to this code. The creators of this code have taken diligent efforts to keep it bug free. However, due to the uncertain nature of blockchain software, there might be bugs discovered in the future. The creators or deployers cannot fix these bugs and shall not be held liable for any losses that might be incurred as a result. The Lendroid Protocol is for educational and experimental purposes, and should not be used for commercial purposes. Please seek professional advice before enabling the use of the Lendroid Protocol for commercial reasons.</p><p>TERMS:</p><p>The complete list of license terms are detailed in our <a href="https://github.com/lendroidproject/protocol.1.0/blob/master/LICENSE.md"><strong><em>GitHub page here</em></strong></a></p><p>Please note that any dApp you build must also include the logomark ‘powered by Lendroid’. You can use the following image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*o-cCZAFKIqU-cZPE" /></figure><p>You can access the media/brand asset kit <a href="https://lendroid.com/brand_resources">at this link</a>.</p><p><strong>Looking Back, and Looking Ahead</strong></p><p>Over the last six months, the Lendroid team have made significant progress on the protocol, <a href="https://blog.lendroid.com/the-lendroid-protocol-v1-is-now-complete-a6ef456350f5">releasing it first on Kovan</a>. We then released a proof-of-concept dApp called <a href="https://blog.lendroid.com/a-comprehensive-user-guide-to-reloanr-a-proof-of-concept-dapp-on-the-lendroid-protocol-9e8926cbfa5b">ReloanR</a>, which reflects the capabilities of V1 of the protocol, and acts as a UI template for potential relayers. In the background, while responding to some strong winds in this marketplace, we have also been working on V2 of the protocol.</p><p>We look forward to seeing you build on the protocol. Understanding the innate risks, we recommend taking this gently, a smaller number of loans to begin with until the protocol is used to higher transactions. To ease in, the protocol will remain in its current version for the next six months. However, we are hungry for feedback. We will take it all in and implement changes or additions after the next iteration.</p><p>Do write to us on <a href="/service/mailto:vii@lendroid.com">vii@lendroid.com</a> for protocol-related inquiries and information. For inquiries related to partnerships and press, please write in to anand@lendroid.com.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e142f1ebe1b3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lendroid/lendroid-is-now-on-mainnet-lets-build-awesome-stuff-together-e142f1ebe1b3">Lendroid is Now on Mainnet. Let’s Build Awesome Stuff Together!</a> was originally published in <a href="https://medium.com/lendroid">Lendroid</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to be a relayer on the Lendroid protocol]]></title>
            <link>https://medium.com/lendroid/how-to-be-a-relayer-on-the-lendroid-protocol-ecfc74fd12fc?source=rss-51203b4b69fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/ecfc74fd12fc</guid>
            <category><![CDATA[lendroid]]></category>
            <category><![CDATA[blockchain-lending]]></category>
            <category><![CDATA[relayer]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[crypto-loans]]></category>
            <dc:creator><![CDATA[Vii Sundaram]]></dc:creator>
            <pubDate>Tue, 02 Jul 2019 07:58:21 GMT</pubDate>
            <atom:updated>2019-07-03T03:07:07.142Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Why it is a good idea to spin off your own relayer on Lendroid, and how we’ve simplified the onboarding process.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2yFYnEfubZINhTBf" /></figure><p>This is part two of the Lendroid Relayer Series, which <a href="https://blog.lendroid.com/a-comprehensive-user-guide-to-reloanr-a-proof-of-concept-dapp-on-the-lendroid-protocol-9e8926cbfa5b">follows from part one</a>, where we introduced Reloanr. In this second part, we attempt to share with you all the information you will need to spin off your own Relayer.</p><p>Lendroid’s Relayer template is open source, and Version 1 enables peer-to-peer lending. It is customizable along six facets including the UI, token support, wranglers, loan terms, and order-book implementation. We are excited to have built this template which now gives more power to anybody that wants to put together a lending product <em>Ikea-style!</em></p><h3><strong>Overview of the Relayer Engine</strong></h3><p>The core of Lendroid’s Relayer engine comprises of the following parts:</p><ol><li>The skeleton — Relayer Template<br>Description : Comprises the source codes for UI and UX. Written in React.js<br>Source code : <a href="https://github.com/lendroidproject/reloanr-ui">https://github.com/lendroidproject/reloanr-ui</a><br>Documentation: <a href="https://developers.lendroid.com/relayer-ui">https://developers.lendroid.com/relayer-ui</a></li><li>The veins and arteries — Order Server<br>Description : An api server that stores, modifies and retrieves lend / borrow orders.<br>Source code : <a href="https://github.com/lendroidproject/kernel-server">https://github.com/lendroidproject/kernel-server</a><br>Comments : The current implementation is written in Python to suit the Google Cloud framework. It contains a simple Order model and corresponding api endpoints. This logic can be replicated to other languages / web frameworks. In such cases, please ensure the existing fields as specified in the <a href="https://github.com/lendroidproject/kernel-server/blob/4a64bb2ebe6f4bdfdbf08961181925b4e0a28673/models.py">models.py file</a> are preserved.</li><li>The heart — Lendroid JS Library<br>Description : JS api for Lendroid protocol smart contracts. Works under the hood.<br>Source code : <a href="https://github.com/lendroidproject/lendroid-js/tree/master">https://github.com/lendroidproject/lendroid-js/tree/master</a><br>Documentation : <a href="https://developers.lendroid.com/lendroid-js">https://developers.lendroid.com/lendroid-js</a></li></ol><p><em>Note : The examples and instructions in this blog post refer only to the source code of the Order server (at </em><a href="https://github.com/lendroidproject/kernel-server/tree/4a64bb2ebe6f4bdfdbf08961181925b4e0a28673"><em>this branch commit</em></a><em>) and the Relayer template (at </em><a href="https://github.com/lendroidproject/reloanr-ui/tree/1ba61e8f1d17d28e0840afe5bf01c35d8b537b9b"><em>this branch commit</em></a><em>) which uses Version 1 of the Lendroid Protocol. We do not cover the Lendroid-js library in this post. Therefore, if you’re curious to know how lendroid-js works under the hood, please feel free to check out to its source code and documentation.</em></p><h3><strong>Configuration and on-boarding process</strong></h3><p>Download the Reloanr code from <a href="https://github.com/lendroidproject/reloanr-ui/tree/1ba61e8f1d17d28e0840afe5bf01c35d8b537b9b">this github repository</a> and follow its README instructions to spin up your own Lendroid Relayer instance. You can customize the template in the following ways:</p><p><strong>The UI skin</strong> — Reloanr comes with a fully finished UI, mated to the UX we defined for the play between Relayer, Lender, Borrower and Wrangler — a unique feature of the Lendroid protocol, incentivised to approve loan terms and monitor loan health. If you’re comfortable in our skin, you can use it as is, but if you’d rather have your own, you can customise it from the `src/assets` folder and the corresponding `.scss` file in each component folder.</p><p><strong>ERC20 token support</strong> — Currently, Reloanr supports Dai, USDC, and Digix. It is built to accommodate any ERC20 token and you can set this up at your end from the `src/components/Contracts.js` file, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/0*ECEKTdSLAZp_VXHJ" /><figcaption><strong>Figure 1 : ERC20 token configuration example from </strong><a href="https://github.com/lendroidproject/reloanr-ui/blob/1ba61e8f1d17d28e0840afe5bf01c35d8b537b9b/src/components/Orders/Contracts.js"><strong>this file</strong></a></figcaption></figure><p>For testing, you can just include the network ID of your choice, and the ETH address of the deployed token contract. In the same file, you can also specify exclusively which tokens to display in the lend / borrow forms.<br><em>LST and WETH are included by default at </em><a href="https://github.com/lendroidproject/lendroid-js/blob/bf5b5a7502c453ca8747352c9c6bcfca283ede94/src/constants/contracts/ContractAddresses.ts"><em>this lendroid.js configuration file</em></a><em> and this configuration need not be modified.<br></em><br>Since this is a protocol level modification, if you notice that the token is not supported by the protocol smart contract(s), drop up a line and we will enable that ERC20 token on the Lendroid protocol.</p><p><strong>Relayer ETH address</strong> — The Relayer gets paid in LST for his services in matching orders. You can set up the Relayer address here — `src/components/Orders.jsx` file<br>The address can be added to the <a href="https://github.com/lendroidproject/reloanr-ui/blob/1ba61e8f1d17d28e0840afe5bf01c35d8b537b9b/src/components/Orders/Orders.jsx#L20"><em>options</em></a> object like this:<br> const options = _this =&gt; ({<br> …<br> relayer: “0x…”<br> })<br>In the absence of the relayer address, any order created on your interface is auto-filled with the ETH address <em>0x0000000000000000000000000000000000000000</em></p><p><strong>Wrangler support</strong> — The Wrangler is a programmable server who checks and approves the loan terms, and also monitors loan health. The default wrangler is Lendroid, but you are free to spin off your own Wrangler as well (instructions soon). In any case, if you want to set your choice of wranglers, you need to go here — <br>`src/components/Orders.jsx`.<br>Edit the const object to include your list of wrangler objects as per the <a href="https://github.com/lendroidproject/reloanr-ui/blob/1ba61e8f1d17d28e0840afe5bf01c35d8b537b9b/src/components/Orders/Orders.jsx#L25">example here</a>.<br>const options = _this =&gt; ({<br> …<br> wranglers: [<br> label: ‘Default Simple Wrangler’,<br>address: ‘0x0f02a30cA336EC791Ac8Cb40816e4Fc5aeB57E38’,<br>apiLoanRequests: ‘https://lendroidwrangler.com&#39;<br>})<br><em>Note: Each wrangler object should include the following fields:<br> label : This text appears on the UI<br> address : ETH address of the wrangler<br> apiLoanRequests : The IP address / domain name where the wrangler server is hosted</em></p><p><strong>Specify / Limit loan terms</strong> — We do understand that loan terms can’t be the same across the world. If you would like to change the terms according to the jurisdiction you are in, you can access this file — `src/FormTab/Forms.js`. For more information, refer <a href="https://developers.lendroid.com/relayer-ui#forminputs">https://developers.lendroid.com/relayer-ui#forminputs</a></p><p><strong>Order book — </strong>By default, all orders are stored on a public server, whose code is available here : <a href="https://github.com/lendroidproject/kernel-server">https://github.com/lendroidproject/kernel-server</a>. The Order server api can be specified in the file `src/components/Orders.jsx`, under the const object like this (<a href="https://github.com/lendroidproject/reloanr-ui/blob/1ba61e8f1d17d28e0840afe5bf01c35d8b537b9b/src/components/Orders/Orders.jsx#L21">example</a>):<br>const options = _this =&gt; ({<br> …<br> apiEndpoint: IP address / domain where the order server is hosted<br>})<br>You can also edit this line to include your own private Order book to handle api requests directly from your Relayer interface. Please ensure that the corresponding wrangler calls are made for api requests to fill / cancel an order.</p><p><strong><em>A note on handling Order Books</em></strong></p><p>Implementation can trigger some questions about some user journeys work or security. We have made every effort to address systemic and security concerns, but always welcome your suggestions and feedback. A couple of instances to illustrate this:</p><ol><li>Consider RelayerA and RelayerB source their order book from the common order server. If RelayerA hosts an order book which was created on RelayerB’s interface, who gets incentivized when that order is filled on RelayerA’s interface?<br><strong>Ans</strong>: RelayerB. LST goes to the relayer of the interface where an order was first created, irrespective of the interface where that order gets filled.</li><li>Is it possible to manipulate the order books by sending api requests directly to the order server, eg for order fills and order cancels?<br><strong>Ans</strong>: No, that would be a security snafu. Every order is filled / updated <strong><em>only</em></strong> after confirmation from the Wrangler. For those implementing their own order book servers, we recommend this approach. Please feel free to reach out to us in case you need more clarification on this.</li></ol><p>Just to reiterate, ERC20 token and wrangler support will be activated by the Lendroid Foundation at the protocol level, upon the relayer’s request.</p><h3><strong>Some background conversation</strong></h3><p>Why is spinning off your own relayer, and that too on the Lendroid Protocol, a good idea?</p><ol><li><strong>Fulfilling a real need</strong>: We believe effective Relayers will champion the cause of user acquisition on the blockchain and consequently, liquidity and scale. With Lendroid’s lending engine at its core, more power is given to developers’ so they can build awesome interfaces for various financial use-cases Trading instruments, shorting, margin, and derivatives.</li><li><strong>Easy setup and upgradability</strong>: Spinning off a Relayer on a protocol like Lendroid is a one-time setup. You either replicate the structure and UI of Reloanr, or you add nifty embellishments to differentiate yourself from other Relayers. Either way, once you’re set up, you earn fees from Lenders and Borrowers for your services. Also, with further developments at the protocol level, you will only need to point to the latest version of the `lendroid.js` library.</li><li><strong>Collaboration and sowing the seeds of creativity</strong>: Feedback and conversations with our relayers will help the Lendroid ecosystem grow exponentially. You want to support more tokens, let us know and we’ll make it happen! You want a change in the process, do not hesitate to let us know.</li></ol><p>For further details or assistance, write to us at <a href="/service/mailto:connect@lendroid.com">connect@lendroid.com</a> or drop us a message on the official <a href="https://t.me/lendroidofficial">Lendroid Telegram page</a>.</p><p>We look forward to hearing from you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ecfc74fd12fc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lendroid/how-to-be-a-relayer-on-the-lendroid-protocol-ecfc74fd12fc">How to be a relayer on the Lendroid protocol</a> was originally published in <a href="https://medium.com/lendroid">Lendroid</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Lendroid Protocol V1 is Now Complete]]></title>
            <link>https://medium.com/lendroid/the-lendroid-protocol-v1-is-now-complete-a6ef456350f5?source=rss-51203b4b69fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/a6ef456350f5</guid>
            <category><![CDATA[lendroid]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <dc:creator><![CDATA[Vii Sundaram]]></dc:creator>
            <pubDate>Sun, 21 Apr 2019 18:20:09 GMT</pubDate>
            <atom:updated>2019-06-03T08:00:59.980Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Includes simple crypto lending for ERC20 tokens, and the introduction of the Wrangler.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cBiBzbWM8t-R4ZjBaUgEDA.jpeg" /></figure><p><a href="https://soundcloud.com/user-685218616/the-lendroid-protocol-v1-is-now-complete">https://soundcloud.com/user-685218616/the-lendroid-protocol-v1-is-now-complete</a></p><p>Lendroid’s journey has been a microcosm of the larger crypto ecosystem resembling that of a roller coaster to say the least. We’ve now set a logical marker on the dev work — the close of V1 of the Lendroid Protocol.</p><h3><strong>The V1 contract</strong></h3><p>V1 is a <a href="https://github.com/lendroidproject/protocol.1.0/blob/master/contracts/protocol.v.py">single contract</a> that enables simple crypto lending with the following features:</p><ol><li>Order fill + cancel</li><li>Loan approval</li><li>Fixed interest</li><li>Loan pre-closure</li><li>Position topup + liquidation</li><li>Non-custodial token transfers</li><li>Support for ERC20 tokens. Currently DAI, WETH, DGD, and USDC are enabled</li><li>Support for wranglers. Currently Lendroid’s simple wrangler at ETH address <strong>0x0f02a30cA336EC791Ac8Cb40816e4Fc5aeB57E38 </strong>is enabled.</li></ol><p>Decisions to add more ERC20 tokens and Wrangler addresses will be made based on requests from the community.</p><p>V1 is proof that the entire loan process can be encapsulated in a single vyper contract, with a compiled bytecode length of 23155 bytes (within the 24kb limit).</p><p>The contract is deployed on Kovan at the following address : <strong>0xba229b9E2e1C9a3427320B25fc3D194C4B9A3F30</strong></p><p>V1 is price-feed agnostic, and relies on the margin level / prices set by the wranglers, who are free to choose price feed oracles that work for them.</p><h3><strong>Gratitude</strong></h3><p><em>“Growth doesn’t happen by mere chance. It is a result of forces coming together.” <br>— James Cash Penney</em></p><p>The awesome team at <a href="https://medium.com/u/e9d6d1ae8864">Richard Ma</a>’s Quantstamp was engaged to <a href="https://quantstamp.com/audits"><em>audit</em></a> our smart contract. Their audit report can be found <a href="https://certificate.quantstamp.com/view/lendroid-protocol-version-1-0"><strong><em>here</em></strong></a>. It is important to note that, subsequent to Quantstamp’s audit, the following modifications were done to the code base:</p><ol><li>Signature support for old and new versions of web3 (JS and Python)</li><li>Making interest calculation a public function used by the wrangler while signing a loan request</li><li>Effective non-reentrant lock for a position</li></ol><p>Special thanks to our friends from the Vyper core development team who were instrumental in providing valuable pointers. <a href="https://medium.com/u/4c9731803c95">Ryuya Nakamura</a>’s elegant <a href="https://github.com/LayerXcom/verified-vyper-contracts/blob/master/contracts/ecdsa/ECDSA.vy">EC verification solution</a>, his <a href="https://github.com/LayerXcom/vyper-remix">Vyper plugin for the Remix IDE</a> (which was used to deploy the contract), and his views on static analysis tools for Vyper could not have come at a better time. <a href="https://medium.com/u/59f7694428d4">nuclearjoker</a>’s <a href="https://github.com/ethereum/vyper/issues/1204">non-reentrant implementation</a>, tips and tricks to solve `stack underflow errors`, and his views on Vyper test suites were impeccable.</p><h3><strong>The way forward</strong></h3><p>Development of V2 is already under way, and we look forward to sharing progress regularly. We also look forward to branching off a few series of discovery, to talk about some elements of our architecture; how you the user can deploy some of these elements yourself, and some alternative use cases as well. Broadly, here are a couple of directions we’re looking at -</p><ol><li><strong>The Relayer Series</strong>: How you can spin up your own Relayer. This is not just about filling order books, but an effort towards designing actual UX. The relayer would interact with the protocol behind the scenes. You could set your own relayer address, you have the freedom to support ERC20 tokens of your choice. You could even explore how meta transactions can be enabled. The first post on the Relayer series will describe Reloanr, a secondary market for ERC20 tokens and a first use case dApp for the protocol.</li><li><strong>The Wrangler Series</strong>: In V1, we’ve got the Simple Wrangler enabled, whose client code is available on <a href="https://github.com/lendroidproject/pywrangler">Github</a>. The client is currently written in Python, and can be deployed to a server of your choosing. The series will also explore how the Wrangler can be deployed in multiple environments. In v1 of the Simple Wrangler, one can<br>1. Approve a loan request<br>2. Monitor loan health<br>3. Liquidate defaulted loans<br>4. Set margin levels<br>5. Decide which price feed oracle to use for the supported tokens</li></ol><p>Once again, we’re happy to officially float V1 of the Lendroid Protocol and look forward to bringing you some amazing developments in V2.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a6ef456350f5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lendroid/the-lendroid-protocol-v1-is-now-complete-a6ef456350f5">The Lendroid Protocol V1 is Now Complete</a> was originally published in <a href="https://medium.com/lendroid">Lendroid</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Moving Over to Vyper]]></title>
            <link>https://medium.com/lendroid/moving-over-to-vyper-ed5ba2fddf6?source=rss-51203b4b69fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed5ba2fddf6</guid>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Vii Sundaram]]></dc:creator>
            <pubDate>Wed, 20 Mar 2019 14:26:06 GMT</pubDate>
            <atom:updated>2019-04-08T14:21:47.067Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Lendroid is one of the first projects to completely switch to Vyper, with fully audited smart contracts.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/241/0*1wNQhwhJ3n2e4n6M" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fw.soundcloud.com%2Fplayer%2F%3Furl%3Dhttps%253A%252F%252Fapi.soundcloud.com%252Ftracks%252F602805069%26show_artwork%3Dtrue&amp;url=https%3A%2F%2Fsoundcloud.com%2Fuser-685218616%2Fmoving-over-to-vyper&amp;image=http%3A%2F%2Fa1.sndcdn.com%2Fimages%2Ffb_placeholder.png%3F1554726096&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=soundcloud" width="800" height="166" frameborder="0" scrolling="no"><a href="https://medium.com/media/4323ed2b19443831923974625b7832f0/href">https://medium.com/media/4323ed2b19443831923974625b7832f0/href</a></iframe><p>The Ethereum Foundation, in the fourth wave of its grants, lists Vyper development and Vyper auditing in<a href="https://blog.ethereum.org/2018/10/15/ethereum-foundation-grants-update-wave-4/"> its wishlist</a>. That the foundation likes a particular language is usually a good enough reason for most developers to jump ship, but coders’ struggles with Solidity — also championed by Ethereum — meant that Vyper had to work harder to endear itself to us. And it did!</p><p>On the blockchain, where gas is dear and threats abound, there are really only two boxes that a smart contract needs to check to pass muster -</p><ol><li>It must be light and as simple as possible</li><li>It must be secure</li></ol><p>Easier said than done.</p><p>A freshly deployed loan contract, for instance, can guzzle up to 4 million in gas. Granted, we can take to recycling contracts to cut costs, but this is far from ideal. The security concerns with Solidity are another matter. It is a beloved language, painstakingly worked on by committed developers, but the toll, some would say, has been heavy. Over the last few years, a rash of attack vectors have been identified and the remedies have mostly been post facto, from the DAO onwards.</p><p>Vyper is optimized, according to the<a href="https://github.com/ethereum/vyper"> GitHub page</a>, for security, language and compiler simplicity, and auditability. We found we were in agreement with this. We began playing with Vyper to bolster<a href="https://www.reloanr.com/"> ReloanR</a>, a secondary market for DAI. It clicked and now we have decided to completely shift to Vyper as our primary smart contract language. For us, Vyper seems like a pragmatic way forward. It is a happy feeling to realize that Lendroid is among the first in the space to switch to Vyper, and we are thrilled about this journey.</p><p>Here are some highlights so far.</p><p><strong>1. No more cross contract calls</strong></p><p>While most frameworks and their cousins move towards modular designs, Vyper can be fascinatingly monolithic. Counter-intuitive as it might seem, Vyper owes much of its robustness because of its monolithic architecture.</p><p>Imagine a single contract that does everything — including loan kernel creation, fill, top up, position validation, cancel and close. It also takes care of filling in the token allowance at the outset.</p><p>In effect, this does away with the need for cross-contract calls and all allied security implications. That’s not all. The flow of the loan process becomes linear and logical when it’s all bundled within a single contract.</p><p><strong>2. Minimizing unknown unknowns</strong></p><p>We really don’t know where an attack vector can pop up from, can we. The best we can do is to minimize vulnerabilities and Vyper is by far the most secure we’ve seen. While we’ll slowly modularize the architecture in subsequent versions, this monolithic framework seems the most secure right now.</p><p>Fewer cross contract calls mean fewer attack vectors. An inherently lean style means a tighter code base and therefore, fewer attack vectors.</p><p>Smart contract programming is not to be taken for granted, and the shift to a more air-tight environment in Vyper only makes sense.</p><p><strong>3. Faster, lighter, better</strong></p><p>Efficiency has been a very welcome core feature of this language. Consider this. In the solidity version of ReloanR, a loan contract would require a healthy 1.7 million gas when deployed. This was still only half of what a loan process would guzzle in other lending protocols, but the level of consumption is hardly sustainable.</p><p>With Vyper, a loan contract would consume around 800k or less in gas. That is a radical improvement in efficiency. And there’s still a way to go. We believe the contract can be optimized much more and we shall do so, in subsequent updates.</p><p>We have also been able to infuse a few nifty advantages to the contracts — like a locking mechanism, for instance. Say a loan is falling below the margin level. The wrangler is within his rights to liquidate it. But he can’t; the loan position would be locked if the borrower chooses to top up the collateral. Cool, innit?</p><p><strong>As version 1 of the Protocol gets ready</strong></p><p>In the two or three-year history of smart contracts, there has been so much progress, and so many risks and much uncertainty. Our aim has been to not just survive uncertainty, but to thrive in it. We see this shift to Vyper as a definitive step in that direction<strong>.</strong>We are and will remain a non-rent-seeking, open protocol. As we get the smart contract audited, feel free to have a look at the Vyper code here : <a href="https://github.com/lendroidproject/protocol.1.0/blob/master/contracts/protocol.v.py">https://github.com/lendroidproject/protocol.1.0/blob/master/contracts/protocol.v.py</a></p><p>Over the next few days, we will also release an updated version of ReloanR. Something to look forward to!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed5ba2fddf6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lendroid/moving-over-to-vyper-ed5ba2fddf6">Moving Over to Vyper</a> was originally published in <a href="https://medium.com/lendroid">Lendroid</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lendroid Solidity Version: A Last Hurrah]]></title>
            <link>https://medium.com/@vii.sundaram/lendroid-solidity-version-a-last-hurrah-6c253779cab8?source=rss-51203b4b69fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c253779cab8</guid>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Vii Sundaram]]></dc:creator>
            <pubDate>Sun, 20 Jan 2019 13:49:40 GMT</pubDate>
            <atom:updated>2019-02-05T13:16:01.407Z</atom:updated>
            <content:encoded><![CDATA[<p><em>As we move to vyper as the smart contract language for the protocol, a look at the design principles and proprietary elements in the Solidity version, which we built with care and have grown fond of.</em></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fw.soundcloud.com%2Fplayer%2F%3Furl%3Dhttps%253A%252F%252Fapi.soundcloud.com%252Ftracks%252F570503325%26show_artwork%3Dtrue&amp;url=https%3A%2F%2Fsoundcloud.com%2Fuser-685218616%2Flendroid-solidity-version-a-last-hurrah&amp;image=http%3A%2F%2Fa1.sndcdn.com%2Fimages%2Ffb_placeholder.png%3F1548859517&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=soundcloud" width="800" height="166" frameborder="0" scrolling="no"><a href="https://medium.com/media/85711cfb62bf929fa0e78ba8027f99cf/href">https://medium.com/media/85711cfb62bf929fa0e78ba8027f99cf/href</a></iframe><p><a href="https://soundcloud.com/user-685218616/lendroid-solidity-version-a-last-hurrah">If you can’t see the embed, listen to the podcast here.</a></p><p>The Smart Contracts of Lendroid Protocol v1 enable crypto lending on the blockchain. The implementation follows <a href="https://uploads-ssl.webflow.com/5b3d0e23faf03c5dc943df64/5b3d0e23faf03c96e243df86_whitepaper-margin-trading-2-18.pdf">Lendroid’s whitepaper</a>, and some component properties have been added or updated for practical purposes. The source code is available on <a href="https://github.com/lendroidproject/protocol.1.0">Github</a>.</p><h3><strong>Driven by design</strong></h3><p>Writing smart contracts for crypto lending is as challenging as it is exciting. On the one hand, there are the functionalities that must be served by the contract. And on the other, the security of the smart contract. Then there is the third and arguably fundamental dimension of usability — how simple the contract is, how light, how economical when it comes to gas cost.</p><p>Lendroid’s design philosophy was informed by these challenges and can be explained in the following manner -</p><p>Architect loosely-coupled smart contracts, where each contract is written to perform it’s core functionality perfectly, and interaction of all the contracts resulted in realizing crypto lending. The functionality of each contract is limited to a maximum of two core functions, and cross-contract interaction is implemented via a registry contract.</p><p>In effect, this design philosophy does three things -</p><ol><li>Makes the smart contract completely efficient in what it sets out to do.</li><li>Keeps each of the smart contracts light</li><li>Makes cross-contract calls seamless and, more importantly, secure.</li></ol><p>Needless to say, each contract plays a very important role in the Lendroid Smart Contract ecosystem.</p><p>Here are some instances -</p><ol><li>The Kernel contract is important in handling wholly and partially filled loan kernels.</li><li>The SimpleWrangler contract validates a loan approval (signed from Wrangler server) to create a crypto loan.</li><li>SimpleLoan contract is necessary to represent a loan position backed by the underlying collateral.</li><li>Positions contract queries the ecosystem regarding lent and borrowed positions.</li><li>The Lazarus contract was implemented to handle re-usable SimpleLoan contract for new loans.</li><li>TokenTransferProxy contract is essential to facilitating token transfers across the contracts and protocol players.</li><li>The Registry contract was central in storing and retrieving information about all contracts in the ecosystem. This is what makes cross-contract calls seamless.</li></ol><h3>Workflow</h3><p>Here’s the broad workflow, with some additional detail to navigate unfamiliar components -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/0*Gv5elSf0JAi7n9Gb" /><figcaption>Lendroid Protocol Smart Contract System design (Solidity)</figcaption></figure><ol><li><strong>Kernel creation</strong>: A loan kernel / order is created, by either a lender or a borrower. If created by lender, it becomes a lend order. If a borrower creates the order, it’s a borrow order. The kernel comprises the following components:<br><em>lender</em>: lender’s ETH address if created by lender, else ZERO_ADDRESS<br><em>borrower</em>: borrower ETH address if created by borrower, else ZERO_ADDRESS<br><em>loanTokenAddress</em>: ETH address of token given as loan<br><em>collateralTokenAddress</em>: ETH address of token needed as collateral<br><em>loanTokenAmountOffered</em>: wei_value of loan token that would completely fill this kernel. Partial fills are possible<br><em>interestRatePerDay</em>: positive decimal value<br><em>loanDuration</em>: seconds indicating how long a loan (created from wholly / partially filling this kernel) is valid<br><em>relayerFee</em>: Fee (in LST) paid to relayer for helping fill the corresponding kernel<br><em>monitoringFee</em> : Fee (LST) paid to wrangler to ensure the loan is not defaulted<br><em>rolloverFee</em> : Fee (LST) paid to wrangler to roll the loan over / extend the loan<br><em>closureFee</em> : Fee (LST) paid to borrower to clean up the loan contract, so it can be re-used for another loan.</li><li><strong>Off-chain storage</strong>: The loan kernel is saved to a central server, which then broadcasts it to relayers</li><li><strong>Relayer</strong>: On the relayer UI, a filler fills the kernel and sends it to the wrangler as a loan request</li><li><strong>Wrangler</strong>: A protocol keeper that approves and monitors loans. If the wrangler rejects the loan, he sends an error message which is displayed on the relayer UI.<br>Otherwise, the wrangler appends a nonce to the request, signs the request, and then sends an approval object comprising<br><em>Signature,</em><br><em>Loan amount filled,</em><br><em>Kernel (loan terms in it), and</em><br><em>Nonce</em><br>This approval is then displayed on the relayer UI for the filler to confirm. After confirmation, it is sent to the protocol smart contracts.<br>It first enters Kernel.sol smart contract via the fill() function</li><li><strong>Loan approval<br></strong><em>Kernel.sol.fill()</em>:<strong> </strong>Takes as input the wrangler’s approval and validates the kernel object (that the creator is in fact the one that created the kernel object). It then sends the approval to SimpleWrangler.sol<br><em>SimpleWrangler.sol.create()</em>: Takes as input the wrangler’s approval and validates his signature (i.e., the correctness of the nonce and the wrangler’s signature). Upon correct validation, a loan contract is created as Loan.sol. Fees as described in the kernel are paid to the Relayer and the Wrangler. The collateral is transferred to the Loan.sol contract. The loan amount is transferred to the borrower.</li><li><strong>Loan closure</strong>: Borrower closes the Loan by repaying the loanAmountOwed to the Lender. The Borrower’s collateral is transferred back to his ETH address.</li></ol><h3>The Solidity Smart Contracts</h3><h3>Low-level contracts</h3><p>The following are the base contracts whose logic is not likely to change during the evolution of the Lendroid Protocol.</p><h3>Registry.sol</h3><p>Stores and retrieves addresses of the lower-level protocol contracts. It contains the following functions:</p><h4>setTokenTransferProxy()</h4><p>Sets the address of the TokenTransferProxy contract</p><h4>getTokenTransferProxy()</h4><p>Returns the TokenTransferProxy contract. The callee can then directly call the functions from the returned value.</p><h4>setPosition()</h4><p>Sets the address of the Position contract</p><h4>getPosition()</h4><p>Returns the Position contract. The callee can then directly call the functions from the returned value.</p><h4>setKernel()</h4><p>Sets the address of the Kernel contract</p><h4>getKernel()</h4><p>Returns the Kernel contract. The callee can then directly call the functions from the returned value.</p><h4>setLazarus()</h4><p>Sets the address of the Lazarus contract (which saves Loan contracts for reuse)</p><h4>getLazarus()</h4><p>Returns the Lazarus contract. The callee can then directly call the functions from the returned value.</p><h3>TokenTransferProxy.sol</h3><p>Inspired from 0xProject, all token allowances and transfers to and from the protocol are handled by this contract. This contract transfers tokens on behalf of all the contracts. It comprises the following functions:</p><h4>transferFrom()</h4><p>Calls into ERC20 Token contract, invoking transferFrom.</p><h3>Position.sol</h3><p>Maintains a list of all lend and borrow positions per address. It consists of the following functions:</p><h4>recordLoan()</h4><p>Record a position whenever a loan is created. Lend position in created for lender, and Borrow position for borrower</p><h4>getLoanCounts()</h4><p>Returns the number of lend and borrow positions for a given address</p><h3>Kernel.sol</h3><p>Exclusive to Kernel-related functionality. Handles kernel-fills and kernel-cancels. It consists of the following functions:</p><h4>fill()</h4><p>This is the entry point of the Loan creation process. This function is called by the relayer once wrangler approves a loan request.</p><h4>cancel()</h4><p>Sometimes, the kernel creator would want to cancel an unfilled / partially filled loan kernel. This function also helps to cancel a loan kernel created by mistake. This is an on-chain call, even though the kernel creation happens off-chain.</p><h4>getFilledOrCancelledLoanAmount()</h4><p>Helper function to determine the loanAmount of loanToken left in a previously created loan kernel.</p><h4>computeOfferHashFromFillInputs()</h4><p>Internal function that returns the kernel hash computed from inputs sent to fill(). Called by only the fill() function. This function was necessary to due to the <a href="https://github.com/ethereum/solidity/issues/267">Stack Too Deep</a> issue.</p><h4>computeOfferHash()</h4><p>Internal function that computes and returns the kernel hash from inputs that make up the kernel object. Called by computeOfferHashFromFillInputs() and cancel() functions.</p><h3>Lazarus.sol</h3><p>Saves Loan contracts for reuse, once they have been closed. This technique helps to recycle used contracts so they do not stagnate the Ethereum blockchain forever. This contracts consists of the following functions:</p><h4>addChild()</h4><p>Add a contract as a child. It’s important that the caller is the owner of the contract. After calling this function, the caller should transfer the ownership of the child to Lazarus</p><h4>releaseChild()</h4><p>Release the last child and transfer it’s ownership to the caller. Returns an array of [true, child address] is successful.</p><h4>cleanLastChild()</h4><p>Remove the last child if it’s owner is not Lazarus. This is useful to clean up maliciously added contracts (since the addChild is a public function which can be called by anyone!)</p><h3>High-level contracts</h3><p>The following contracts are likely to evolve over different versions of the Lendroid Protocol.</p><h3>SimpleWrangler.sol</h3><p>Creates, stores info about, and manages loans approved by the wrangler. It comprises of the following functions:</p><h4>create()</h4><p>This function is called by the Kernel.sol contract (specifically, from Kernel.fill()). This function takes as input the wrangler’s approval and validates his signature (i.e., the correctness of the nonce and the wrangler’s signature). Upon correct validation, either a new loan contract or an existing cleaned loan contract is reused, depending on whether a cleaned contract is available or not upon calling Lazarus.releaseChild() function. The Loan.init() method is then called to populate the contract with the loan terms. Fees as described in the kernel are then paid to the Relayer and the Wrangler. The collateral is transferred to the Loan.sol contract. The loan is transferred to the borrower.</p><h4>releaseContract()</h4><p>Transfer ownership of given loanAddress to Lazarus. This is called by the Borrower once a loan is closed. This function resets all parameters of the loan contract, and transfers its ownership to the Lazarus contract.</p><h3>SimpleLoan.sol</h3><p>The Loan contract containing loan terms between the lender and the borrower. All loan-related functions are performed by calling the following functions on this contract.</p><h4>init()</h4><p>Called by SimpleWrangler contract (specifically SimpleWrangler.create()). The loan terms are set as the contract parameters. Fees as described in the kernel are then paid to the Relayer and the Wrangler. The collateralAmount of the collateralToken is transferred to the Loancontract. The loanAmount of loanToken is transferred to the borrower.</p><h4>computeHash()</h4><p>Returns a hash of loan terms defined in the contract.</p><h4>transferCollateralToken()</h4><p>Internal function to transfer the collateral from the contract to the intended recipient. Used by close() and liquidate() functions.</p><h4>close()</h4><p>Borrower closes the Loan by repaying the loanAmountOwed to the Lender. The Borrower’s collateral is transferred back to his ETH address.</p><h4>liquidate()</h4><p>Called by Wrangler if the borrower defaults his payments. In v1, we also allow lender to call this function if the loan expires and still has not been repaid.</p><h4>topUp()</h4><p>Borrower sends some more collateralToken to the Loan contract if the value of the collateral backing the loan decreases below the margin value due to market fluctuation</p><h4>clean()</h4><p>Called by SimpleWrangler contract (specifically SimpleWrangler.releaseContract()). This function resets all the parameters to their default values, and the contract’s ownership is transferred to Lazarus. This makes the contract available for reuse. The borrower is then sent the closeFee in LST.</p><h4>renounceOwnership()</h4><p>This makes it impossible to transfer a Loan contract to a ZERO_ADDRESS, thus making it necessary to always have an owner.</p><h3>In conclusion …</h3><p>The information above was intended to provide a comprehensive overview of our design philosophy while architecting our smart contracts. It will also be made available soon on our documentation at <a href="https://developers.lendroid.com/">https://developers.lendroid.com</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c253779cab8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reloanr and More: A Quick Progress Update]]></title>
            <link>https://medium.com/lendroid/reloanr-and-more-a-quick-progress-update-eb1fe8e633aa?source=rss-51203b4b69fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb1fe8e633aa</guid>
            <category><![CDATA[techupdates]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[reloanr]]></category>
            <category><![CDATA[crypto-loans]]></category>
            <dc:creator><![CDATA[Vii Sundaram]]></dc:creator>
            <pubDate>Tue, 10 Jul 2018 17:24:00 GMT</pubDate>
            <atom:updated>2018-07-10T17:24:00.764Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Updated repos, a glimpse into the UI and an assessment of the ‘how’ of things</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nxOMoEcpKnFiC3QJyuHREw.png" /></figure><p>To begin with, a shout-out to the community for their support and patience. We’ve played things a bit close to the chest in recent weeks, but now we’ve got something to share. A progress update on Reloanr, with a sneak peek into the UI (subject to further improvements). We’ve also opened up the GitHub repo, where you can view and review not just Reloanr code, but also the Lendroid JS library and protocol smart contracts. Shall we begin?</p><p>Without further ado, links to our GitHub repos, with updated code:</p><p>1. Reloanr UI : <a href="https://github.com/lendroidproject/reloanr-ui">https://github.com/lendroidproject/reloanr-ui</a></p><p>2. Lendroid JS library : <a href="https://github.com/lendroidproject/lendroid-js">https://github.com/lendroidproject/lendroid-js</a></p><p>3. Protocol Smart contracts : <a href="https://github.com/lendroidproject/protocol.1.0">https://github.com/lendroidproject/protocol.1.0</a></p><p>Do take a look, and connect with us on the <a href="https://t.me/lendroidproject">Telegram channel</a>, <a href="https://twitter.com/lendroidproject">Twitter</a>, <a href="https://lendroid.slack.com/">Slack</a> or <a href="https://www.reddit.com/user/LendroidProject">Reddit</a>.</p><p><strong>Reloanr — Why it’s different</strong></p><p>We first unveiled <a href="https://www.reloanr.com/#/">Reloanr</a> — the first-of-its-kind secondary market for Dai loans — at ETH Buenos Aires. As we announced in <a href="https://t.co/tJSdafQBwQ">the partnership blog</a>, it is an active use case for the Lendroid Support Token, and also the debut of the Wrangler, an original Lendroid concept.</p><p>Now, there are ways to get Dai apart from generating a CDP — at an exchange for instance, or via a lending dApp. Getting it from an exchange would mean purchasing the Dai, with no further instance of utility for the stablecoin.</p><p>What if you could borrow the Dai with some wrapped ETH instead? And what if you could loan Dai and earn interest? This isn’t such a big leap for existing dApps, but here are the Reloanr differentiators -</p><p><strong>Speed</strong></p><p>Typically, there is considerable waiting time when trying to get a crypto loan. This is because every step of the process — from requesting a borrow order, filling in the requisite details like interest and time frame, allocating collateral — are each committed on-chain, one by one. And that’s even before the offer has been filled in and the loan created. This spikes the number of transactions, and causes a visible drag on the experience.</p><p>Lendroid dips into the network <strong>only</strong> at the final instance, when the loan is availed. All the underlying contract calls are aggregated into one single transaction. Requests, filling offers, all happen off-chain. Not only is this faster, but also more efficient on the network. What if a borrow order is created, committed on chain and there are no takers? The four (at least) transactions that went into creating it go waste, and the potential borrower’s collateral is locked. Reloanr also repurposes orphan contracts, further reducing the number of transactions and thereby, the speed of your experience on the platform.</p><p><strong>Feature Rich</strong></p><p>There’s always room for more, but it is important to set a benchmark when building a lending platform, particularly to inspire adoption.</p><p>Let’s look at Reloanr from the borrower’s perspective. He can begin with wrapping his ETH on the platform itself. He can choose which lend order he needs. He can close the loan at any time before expiry. More importantly, he can top up his collateral when the loan health depreciates.</p><p>Like borrowers, lenders too can choose which orders they want to fill (partially or wholly). They can choose to liquidate the loan if the loan health deteriorates, and they can (soon, via wranglers) request a loan rollover, so the interest keeps flowing in.</p><p><strong>The Wrangler</strong></p><p>The Wrangler is potentially the most important addition to the lending ecosystem. With the Wrangler, we’re completely decentralizing the computational needs of the protocol — whichever form that might take. We’re talking underwriting, clearing house services, account monitoring, and much more.</p><p>In the Reloanr context, the Wrangler is an underwriter. At the time of order creation, lenders and borrowers get to pick their choice of Wrangler from a drop down, to monitor the loan. Wranglers will have their own server and smart contract system. To begin with, Lendroid will be the Wrangler. Subsequently, anybody can register to provide Wrangler services on the protocol.</p><p><strong>Reloanr — Where we’re at</strong></p><p>For a full overview of the platform, you can check out our <a href="https://www.reloanr.com/primer.pdf">published primer</a>, which lists the various stages and features. We’ve come some way in making that a reality. Here’s a sneak peek into the UI, which will soon be live on <a href="http://app.reloanr.com/">app.reloanr.com</a>.</p><p><em>Note: the numbers are placeholders in the illustrations.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MOQb0OSqviSapZoD" /><figcaption>As a Lender, you can begin by setting your Dai allowance.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pBuRf5tPm1F0HxP-" /><figcaption>As a borrower, you can wrap your ETH on the platform.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8QwDrzMjAmmBu29l" /><figcaption>And set your WETH allowance for collateral.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HpvrghUflrmcn4gS" /><figcaption>Here’s how you create a Lend Order as a Lender. A simple, composite exercise.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/0*FQdqo0sR3_ilQ8rR" /><figcaption>The Borrower fills a Lend Order in one step.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*t2SfYsz9CrEa3tlh" /><figcaption>A snapshot of the Wrangler approval of the loan request.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/0*EZNaKkkUjNrtudfh" /><figcaption>The loan, now ready, is reflected on the Borrower’s UI.</figcaption></figure><p>Notice the borrower has the option to close the loan or top up collateral. The liquidate option, innate to the Lender’s role, is disabled here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/0*3lDrqdiJdlQsgn1m" /><figcaption>The loan is also reflected in the Lender’s UI.</figcaption></figure><p>Creating a loan is possible now, and we’re currently working on wrapping up collateral top-up and liquidation. Reloanr will first be launched on Kovan and subsequently, on mainnet.</p><p>It’s been a while since we last connected, but I hope to make this a more regular affair and look forward to sharing even more interesting updates soon.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb1fe8e633aa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lendroid/reloanr-and-more-a-quick-progress-update-eb1fe8e633aa">Reloanr and More: A Quick Progress Update</a> was originally published in <a href="https://medium.com/lendroid">Lendroid</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Announcing Reloanr: Lendroid + Maker]]></title>
            <link>https://medium.com/lendroid/announcing-reloanr-lendroid-maker-ca95cacc415?source=rss-51203b4b69fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca95cacc415</guid>
            <category><![CDATA[stable-coin]]></category>
            <category><![CDATA[loans]]></category>
            <category><![CDATA[secondary-market]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Vii Sundaram]]></dc:creator>
            <pubDate>Fri, 25 May 2018 17:18:28 GMT</pubDate>
            <atom:updated>2018-05-25T17:18:28.190Z</atom:updated>
            <content:encoded><![CDATA[<h4>A secondary market for Dai loans, you can lend and borrow DAI on Reloanr. Marks an active use case for LST and a debut for the Wrangler, an original Lendroid concept.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R9GR24mm7cVYpSLrhisfGg.png" /></figure><p>We’re thrilled to announce the launch of <a href="https://www.reloanr.com/">Reloanr</a>, a secondary market for Dai loans, to complement the MakerDAO stablecoin system. The alpha version of the platform will be live on <a href="https://app.reloanr.com/">app.reloanr.com</a>.</p><p><em>“We’re excited to see Reloanr come to life. A successful secondary market for Dai loans ultimately increases access to the available liquidity of Dai and can drive new use cases in the market. It’s great that the team shares in our mission and vision for a better financial future,”</em> said Rune Christensen, CEO at MakerDAO.</p><p>Reloanr complements Maker with a secondary market for Dai, immune to credit ceilings or a crunch in token supply. Right now, you can access Dai by either creating a Collateralized Debt Position (CDP), or purchasing it at an exchange. Reloanr presents another alternative. Those who already hold DAI can now offer it at a convenient interest; earn a little for themselves, and make DAI available to those that need it.</p><p><em>“MakerDAO holds a special, inspirational space in the crypto community. We wanted to build something that truly complements the Maker ecosystem; something more than just making Dai available on the Lendroid protocol. With Reloanr, I believe we’ve achieved that. It represents a unique use of Dai, which enhances liquidity, offsets the capital cost of holding a stable currency, and will conceivably improve its velocity in the market.”</em> said Vignesh Sundaresan, Project Lead at Lendroid.</p><p>At Lendroid, we believe this shared vision for a better financial future on the blockchain can be achieved only through deploying viable financial instruments with high utility and stickiness. These instruments would stretch the limits of what is currently possible, not just for a protocol, but for the blockchain ecosystem at large. Reloanr is a definitive step in this direction.</p><p><strong>Learn more about Lendroid:</strong></p><p>Check out our <a href="http://www.lendroid.com/">website</a></p><p>Read our <a href="https://lendroid.com/assets/whitepaper-margin-trading.pdf">whitepaper</a></p><p>Join the conversation on <a href="https://t.me/lendroidproject">Telegram</a></p><p>Follow us on <a href="https://www.reddit.com/r/lendroidproject/">Reddit</a> and <a href="https://twitter.com/lendroidproject">Twitter</a></p><p><strong>Learn more about MakerDAO:</strong></p><p>Check out our <a href="https://makerdao.com/">Website</a></p><p>Read our <a href="https://makerdao.com/whitepaper/DaiDec17WP.pdf">Whitepaper</a></p><p>Join the conversation on <a href="https://www.reddit.com/r/MakerDAO/">Reddit</a> and <a href="http://twitter.com/makerdao">Twitter</a></p><p>Follow us on <a href="https://t.me/makerdaoofficial">Telegram</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca95cacc415" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lendroid/announcing-reloanr-lendroid-maker-ca95cacc415">Announcing Reloanr: Lendroid + Maker</a> was originally published in <a href="https://medium.com/lendroid">Lendroid</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding the Lendroid Token Release Schedule (TRS)]]></title>
            <link>https://medium.com/lendroid/understanding-the-lendroid-token-release-schedule-trs-bfce5fa67401?source=rss-51203b4b69fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/bfce5fa67401</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[token]]></category>
            <category><![CDATA[lendroid]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Vii Sundaram]]></dc:creator>
            <pubDate>Sat, 17 Feb 2018 07:01:04 GMT</pubDate>
            <atom:updated>2018-02-28T16:40:20.756Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A guaranteed 25% bonus, plus pro rata allocation of 2.4 billion unsold LSTs to those who choose to vest their tokens with a TRS contract.</em></p><p>In the Lendroid public Token Generation Event, 240 million LSTs are for sale. This is 5,000 ETH worth of tokens. However, our intention of conducting the TGE is to maximize community participation, and reward registered participants who share a long term vision for the protocol.</p><p>To do this, we are allocating a bonus to contributors willing to vest their LST for a year. The tokens will be released via a <a href="https://github.com/lendroidproject/tge-contracts/blob/master/src/simpleVesting.sol">Token Release Schedule (TRS) contract</a>, currently under audit by <a href="https://quantstamp.com/">Quantstamp</a>.</p><p><strong>Change in TRS Schedule</strong></p><p><em>The TRS vesting schedule has undergone a change. Here’s why -</em></p><ol><li><em>Recommendations from Quantstamp. We will release the audit results and the TRS Contract soon. Do stay tuned to our blog and official Telegram channel.</em></li><li><em>Recommendations from the community and advisors.</em></li></ol><p><em>It is now simpler, and offers greater flexibility to the participants.</em></p><p><strong>TRS Vesting Bonus Pool</strong></p><p>From a pool of 3.6 billion tokens, the TRS Contract calculates and allocates bonus tokens to registered participants who chose to vest their tokens, over a 12-month period.</p><p>There are two components that make up the TRS bonus pool:</p><ol><li>10% of the total supply of LST reserved exclusively for the TRS — <strong>1.2 billion LST</strong></li><li>Unsold tokens originally allocated for the TGE — <strong>2.4 billion LST</strong></li></ol><p>Therefore, the total bonus pool is 3.6 billion LST. Through the TRS, registered participants who choose to vest their tokens get a 25% guaranteed bonus from the reserved supply of 1.2 billion LST, and also a pro rata distribution of the 2.4 billion unsold tokens. That’s a total bonus of 150%.</p><p>To put it simply, the total LST for registered vesting participants would be at least 2.5 times their LST generated during the TGE.</p><p><strong>Note</strong>: Some of the registered participants might choose not to vest. In that case, 100% of your tokens can be withdrawn after the TRS subscription ends and the token transfer function is enabled (estimate: 15 days after the TGE ends, 3rd March). The tokens can be withdrawn at a rate of 1 ETH = 48,000 LST (no discount).</p><p><strong>Vesting Decision</strong></p><p>During the TGE (Feb 19 to Feb 22), participants can make their vesting decision along with their contribution. Additionally, right up to 26th of Feb 23:59 GMT (for the Pre-TGE contributors we have extended this date to 7th March 23:59 GMT) , they can change their vesting decision via a simple transaction instruction to the contract via their registered wallet.</p><p>We will showcase the contribution process and how to make a vesting decision with step by step instructions in a subsequent blog on Feb 18.</p><p>The tokens will be available for transfer 7–14 days after this.</p><p>Over the next 12 months, the TRS Contract will allow release of tokens to the vesting participants in linear installments.</p><p><strong>The Vesting Schedule</strong></p><p>Here’s a step by step view of the TRS process -</p><ol><li><strong>LST contribution during the TGE</strong></li><li><strong>Vesting decision through TGE up to </strong>26th of Feb 23:59 GMT</li><li><strong>Token Allocation is Calculated</strong> — For TGE participants who chose to vest, from pool of 3.6 billion LST. This will mean a 150% bonus to participants.</li><li><strong>Initial Token Release</strong> — 10% of the allocated tokens are minted / released 7–14 days after the TGE.</li><li><strong>Linear TRS Installment</strong> — The remaining tokens are vested over the next 12 months. They are sent to the ‘Token Vesting’ contract. Your token split is linear over those 12 months.</li><li><strong>Contract Completion</strong> — After 12 months, participants will have received the total token allocation. They will have got 2.5 times the tokens generated for them during the TGE.</li></ol><p><em>You have a choice to keep your vested tokens for a longer period and withdraw at your choice, i.e., the frequency of withdrawal is your choice!</em></p><p><strong>The withdraw-able amount is calculated linearly</strong></p><ol><li>After the TGE, in 7–14 days, 10% will be made available.</li><li>The remaining 90% will be vested over a period of 12 months, or 365 days.</li><li>This means the 90% will be vested at the rate of 90/365, about 0.247% per day.</li><li>At any point in the 12 months, vested contributors can withdraw up to the maximum limit of tokens that can be released until that day. This is in addition to the 10% initial release.</li><li>For instance, if you decided to withdraw after a month, you are eligible for .247% x 30. If you withdrew after three months, you are eligible for .247% x 90. If you decided to withdraw after just a week, .247% x 7.</li></ol><p>This will continue for 365 days.</p><p><em>The advantage of linear vesting is the flexibility you have in withdrawal of tokens. You will not have to wait for the month to end before you withdraw.</em></p><p>Feel free to reach out to us through our <a href="https://t.me/lendroidproject">Telegram channel</a> at any time. We are committed to providing all necessary information about the project to help you make an informed, safe decision.</p><p>Finally and importantly, a shout-out to the <a href="https://aion.network/">Aion network</a>, who were an inspiration for the Lendroid TRS, as an authentic model to reward long-term supporters of the project. And a shout out also to Quantstamp, for their stellar auditing of the smart contract.</p><p><strong><em>Next blog: A Guide to the Lendroid TGE</em></strong> -</p><p>Published 24 hours prior to TGE, this will provide detailed information on how to participate, along with the contract address, individual cap and the link. Please bear in mind that until 0:01 GMT on Feb 19, you do not have to do anything on your end. After 0:01 GMT, you may proceed to the TGE link and make your contribution. There is no hurry as all registered participants will be allowed to contribute on Day 1, with no gas war. Therefore you can take your time! The individual cap will be removed from day 2.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bfce5fa67401" width="1" height="1" alt=""><hr><p><a href="https://medium.com/lendroid/understanding-the-lendroid-token-release-schedule-trs-bfce5fa67401">Understanding the Lendroid Token Release Schedule (TRS)</a> was originally published in <a href="https://medium.com/lendroid">Lendroid</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Testing strengths!]]></title>
            <link>https://medium.com/@vii.sundaram/testing-strengths-5f5c9351a650?source=rss-51203b4b69fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f5c9351a650</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[lendroid]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[updates]]></category>
            <dc:creator><![CDATA[Vii Sundaram]]></dc:creator>
            <pubDate>Wed, 22 Nov 2017 13:59:50 GMT</pubDate>
            <atom:updated>2017-11-22T13:59:50.125Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A weekly tech roundup from Lendroid</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5ojJzDBVTWMz0psIS7L_KA.jpeg" /></figure><p>Welcome to the second week of our #TechRoundup. During this summer , when we developed the <a href="https://blog.lendroid.com/loans-for-ens-names-lendroid-testnet-demo-1b3d5f741358"><strong>ENS Loans demo</strong></a>, our smart contract framework stack comprised the <a href="http://truffleframework.com/docs/"><strong>Truffle framework</strong></a> and the <a href="https://remix.ethereum.org/"><strong>Remix IDE</strong></a>. For our use-case back then, this stack seemed to be an ideal combination for rapid development. Since the unveiling of <a href="https://ethereumfoundation.org/devcon3/sessions/dapphubb/"><strong>Dapptools</strong></a> at <a href="https://ethereumfoundation.org/devcon3/"><strong>devcon3</strong></a>, we have made efforts to migrate towards the <a href="https://dapp.tools/"><strong>Dapphub toolkit framework</strong></a>, and it has worked wonders for us. In this post, we describe how we have benefitted from this migration.</p><ul><li><strong>Inline testing</strong> using unit and integration tests alongside the core contracts makes more sense. The biggest take is that testing event logs such as availing/closing of loans is now possible. Furthermore, the ability to write tests that are expected to fail (by prefixing the test name with “testFail”) is also a powerful feature.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VafXtBYM_3C-SniGV8yX-Q.png" /><figcaption>Failing test with a more debug-friendly output</figcaption></figure><ul><li><strong>Unit tests</strong> for managing loans can be found in <em>LoanManager.t.sol</em>.</li><li><strong>Unit tests</strong> for managing positions are in place at <em>PositionManager.t.sol</em>.</li><li><strong>Integration tests</strong> to calculate the margin account’s health are available in <em>MarginTrading.t.sol</em>.</li><li><strong>HEVM</strong>, an EVM written in Haskell adds a light-weight feel to the framework that makes the build and test processes seam effortless. There is no separate code needed to specify migrations, link helper libraries, etc.</li><li><strong>Clear package structure</strong> enabling separation between the core contracts, dependencies, and the build versions makes it easier to scale contracts and add new modules.</li><li><strong>The flexibility</strong> to install and uninstall sub modules complements the *nix style very well. Currently, our core submodules constitute <a href="https://dapp.tools/dappsys/ds-stop.html"><strong><em>ds-stop</em></strong></a>, <a href="https://dapp.tools/dappsys/ds-token.html"><strong><em>ds-token</em></strong></a>, <a href="https://dapp.tools/dappsys/ds-vault.html"><strong><em>ds-vault</em></strong></a> and <a href="https://dapp.tools/dappsys/ds-math.html"><strong><em>ds-math</em></strong></a>.</li></ul><p>Any untested code at the base level is not suitable to build around. Therefore, before scaling our contracts to include relayer and wrangler specific features, we felt it was important to make sure the underlying business logic was stable and well-tested.</p><p>Our Smart contracts can be found on <a href="https://github.com/lendroidproject/protocol-demo"><strong>this</strong></a> Github repository.</p><p>Stay tuned for more updates. Until next week!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f5c9351a650" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Smart Contracts that aren’t just smart, but good, too]]></title>
            <link>https://medium.com/@vii.sundaram/smart-contracts-that-arent-just-smart-but-good-too-32a3f124f30d?source=rss-51203b4b69fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/32a3f124f30d</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[updates]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[lendroid]]></category>
            <dc:creator><![CDATA[Vii Sundaram]]></dc:creator>
            <pubDate>Tue, 14 Nov 2017 17:00:29 GMT</pubDate>
            <atom:updated>2017-11-16T08:29:03.451Z</atom:updated>
            <content:encoded><![CDATA[<p><em>A weekly tech roundup from Lendroid</em></p><p>While we’ve kept you abreast of our exciting partnerships and collaborative efforts over the last few weeks, there’s also been a fair amount of work happening under the hood at Lendroid. With the #TechRoundup, we’d like to give you weekly updates of the cool stuff we’ve been working on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*YrrAH9CrduHoZ3sP6C1gYQ.jpeg" /></figure><p>Governance is a big priority for a decentralized protocol like Lendroid. We’re pushing the envelope with a governance-friendly smart contract architecture. We’ve also been exploring best practices of scaling the contracts. Some of the incredible talks at <a href="https://ethereumfoundation.org/devcon3"><strong>Devcon3</strong></a> have been such eye-openers (<a href="https://ethereumfoundation.org/devcon3/sessions/sikorka-smart-contracts-become-location-aware"><strong>Sikorka</strong></a>, <a href="https://ethereumfoundation.org/devcon3/sessions/dapphubb"><strong>DappHub</strong></a>, <a href="https://ethereumfoundation.org/devcon3/sessions/designing-future-proof-smart-contract-systems"><strong>Aragon OS</strong></a>, <a href="https://ethereumfoundation.org/devcon3/sessions/balancing-decentralization-with-usability-skillful-product-design-in-the-movement-towards-full-decentralization%E2%80%A8/"><strong>Central Logger</strong></a>). So, without further ado, here’s the first of the tech updates.</p><p>What we have now</p><ul><li>Helper contracts — We’re now using the <a href="https://dapp.tools/dappsys"><strong>DappSys</strong></a> building blocks released by the <a href="https://dapphub.com/"><strong>DappHub</strong></a> team. This has taken “Smart contract architecture obeying the Law of Demeter” to a whole new level. We now have more <em>powerful ACL</em> using Ds-guard.sol. Ds-math.sol has made math operations smooth, especially with its support for <em>WAD and RAY</em> based calculations.</li><li>Added <em>WETH</em> support, and looking forward to the <a href="https://blog.0xproject.com/canonical-weth-a9aa7d0279dd"><strong>Canonical WETH implementation</strong>,</a> which would be a major boost to the decentralized ecosystem.</li><li><em>Oracle.sol</em> that provides price feeds sourced from various price feed providers.</li><li>A <em>PriceFeed</em> module that currently uses price feed from api.coinmarketcap.com via <a href="https://medium.com/@oraclize"><strong>Oraclize</strong></a>. This module is open to contributors who can add their own <em>PriceFeedProvider</em> contracts to make the Lendroid network even more robust (More on this and similar open-modules in a future post).</li><li><em>Wallet.sol</em> to support Lender, Margin account, &amp; Wrangler balances. Also calculates margin balances.</li><li><em>LoanManager.sol</em> to handle loans. Simple CRUD operations on Loan objects.</li><li><em>PositionManager.sol</em> to handle positions. Simple CRUD operations on Position objects.</li><li>A placeholder <em>OrderManager.sol</em> to temporarily handle orders for demo purposes.</li></ul><p>What lies ahead</p><ul><li>Elegant order-handling via various relayers. Thrilled to have <a href="https://medium.com/radarrelay/lendroid-radar-relay-80654cf07471"><strong>RadarRelay</strong></a> and <a href="https://medium.com/@the0cean"><strong>The 0cean</strong></a> on board.</li><li>More attention toward offline actions — single <em>Logger.sol</em> for offline listening, wrangler scripts for offline computation.</li><li>A smart contract upgrade system using Governance models (we have already started working in this direction, and will be sharing more on future posts).</li></ul><p>Our Smart contracts can be found on <a href="https://github.com/lendroidproject/protocol-demo"><strong>this</strong></a> Github repository.</p><p>We’re still working on the UI, and cannot wait to let you (both traders and coders) experience what the Lendroid protocol brings to the decentralized ecosystem.</p><p>Stay tuned for more updates. Until next week!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32a3f124f30d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>