Skip to content

alankrit-01/Defi-lending-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Defi-lending-platform

ABOUT

Defi lending and borrowing platorm where,

  • Lender can deposit ethers
  • Lender can withdraw ethers partially (maximum, his principal amount)
  • Lender can withdarw all of his ethers (principal + Interest)
  • Borrower can send Dai token as collateral can can redeem 60% of it as loan (as ethers)
  • Borrower will get his collateral back (as Dai) with he pay his loan amount +interest back (in ethers)
  • Lending and borrowing interest rates are fixed per block

HOW TO RUN

npx hardhat node --fork https://speedy-nodes-nyc.moralis.io/3b50a8f528f7397fd9f310cf/eth/mainnet
npx hardhat run ./scripts/script.js

UNCOMPLETE

  • Will code a function to liquidate collateral if borrower is unable to replay loan

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published