Skip to content

raghavgithub06/Borrowing-and-Lending-Defi

Repository files navigation

Borrowing and Lending Defi

Introduction

This Asset Borrowing and Lending Defi Dapp operates on Ethereum's Sepolia Testnet.

Technology Stack

  • Built on Ethereum Blockchain
  • Solidity
  • Javascript
  • Typescript
  • Chainlink Price Oracles
  • Openzeppelin (ERC20 Tokens, Ownable, Reentrancy Guards)
  • Hardhat
  • Etherjs
  • Metamask
  • Infura Web3API
  • Next JS
  • Tailwind CSS
  • HTML

Project Layout

Top Level folders

  1. /components - contains the front-end application
  2. /context - contains the front-end application wrapper javascript
  3. /contracts - contains the solidity contract
  4. /pages - Next Js Main rendering pages and components

Important Files

  1. package.json - node modules to be installed, etc.
  2. .env - To store Infura/Alchemy API keys and your private key

Using & Testing DApp on Sepolia

  1. Metamask : Install Metamask wallet extension

  2. Add Sepolia Testnet to MetaMask

Cloning and Deploying the Dapp on Sepolia Testnet

  1. Clone this repo :

  2. Go to the root directory and install all node packages

  3. Please Create a new Infura API key

  4. Now copy Metamask wallet private key

  5. Create a new .env file in the root directory

    Paste the Infura Sepolia API key and your metmask accounts private key into .env file INFURA_SEPOLIA_API_URL=""

    MAIN_ACCOUNT = ""

  6. Start NextJs Node Server

License

This project is licensed under the MIT License.

About

It is a repo that contains the full stack defi dapp.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published