Coder Social home page Coder Social logo

25nyak / esbq3-finalproject_g6 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from josevazf/esbq3-finalproject_g6

0.0 0.0 0.0 218 KB

Lending Protocol dApp

Home Page: https://esbq3-group6-lending.netlify.app/

JavaScript 0.52% TypeScript 58.77% CSS 5.63% Solidity 35.08%

esbq3-finalproject_g6's Introduction

Encode Solidity Bootcamp Q3 - Final Project

Group 6 Lending Protocol

Decentralized Lending application that enables supplying of ETH as collateral in order to borrow USDC. Accounts can also earn interest by supplying USDC to the protocol.

https://esbq3-group6-lending.netlify.app/

  • G6T Token contract: 0xb46b5C88464E2DCeE987f159f6cF1066B52A360D
  • USDC Token contract: 0x94a9D9AC8a22534E3FaCa9F4e7F2E2cf85d5E4C8
  • ETH/USD Oracle contract: 0xD17ecb6579cAD73aE27596929e13b619bA9060A5
  • G6T Swap contract: 0xeb148995BB83E7D60BadcE63c9729Cc294327C16
  • USDC Swap contract: 0xddcEf1aEe575686B892aaea7d3773817be151E42
  • Lending Protocol contract: 0xf0Bf271fd7376FE9e49D6cF1f97511e35A873176

The Lending dApp operates under three tokens: native Sepolia ETH, USDC and our very own G6T.

On the Lend side users can make their USDC available to other users looking for a loan by depositing into the Liquidity Pool. As an incentive Lenders receive G6T token rewards under a set APR rate while also sharing a part of the protocol fees payed by the Borrowers.

On the Borrow side users can deposit ETH as collateral and borrow up to 80% of the corresponding value in USDC. Once this happens interest fees start accruing until the total debt is repayed or until the debt value surpasses the value of the deposited collateral, by wich they are liquidated, losing the deposited ETH.

To facilitate interactions with the protocol there are also two interfaces to swap between ETH/G6T and ETH/USDC, provided by the protocol.

The application was implemented using React/Next.js and Wagmi hooks to interact with the smart contracts.

Setup:

  1. Clone the repository.
  2. Install dependencies with npm install within frontend folder.
  3. Update variables with your contracts addresses inside /frontend/components/instructionsComponent/index.tsx
  4. Run npm run dev and open http://localhost:3000 with your browser to interact with the dApp.

esbq3-finalproject_g6's People

Contributors

josevazf avatar neer17 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.