Giter Club home page Giter Club logo

pooled-loan's Introduction

Pooled Loan: DeFi Chit Fund

This project uses a factory contract to spawn new loan pools. This combines a browser-based frontend with the ethereum smart contract using web3.js. Anyone can create the pool using the form on the application. During the creation of the pool, the pool creator needs to fill in the necessary details and, need to choose the lending pool between Aave & Mstable. Based on the choice, a new smart contract will get generated using the factory contract. The details of the pool will get stored on the graph using the-graph SDK. The participants will be able to join any chit fund pool available to participate from the frontend. They need to deposit the collateral amount and, the collateral will generate a yield from the lending platforms (Aave or Mstable). The loan auction will start once at least 2 participants will join the pool. During the auction, the participant can bid the amount to win the loan if they want. The number of the auction will depend upon the total number of participants in the pool. The highest bidder will be able to claim the loan, once the auction period will be over. The loan amount will be equal to the loan amount - bid amount (the loan amount is also equal to the collateral deposited at the beginning). The bid amount will remain stored on the lending pool and it will get distributed among all the participants with yield generated from lending pools after all auctions. The advantage of this approach is that the last participant gets the loan interest free and on top of that earns interest on the collateral. The interest paid by other borrowers is used to earn an additional interest which is also distributed among all the participants.

Demo Video

youtube_video

Running Project Locally

  1. Prerequisites: Make sure you've installed [Node.js] โ‰ฅ 12 and [Rust with correct target][Rust]
  2. Install dependencies: yarn install
  3. Run the local development server: yarn start (see package.json for a full list of scripts you can run with yarn)

pooled-loan's People

Contributors

princesinha19 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.