Skip to content

somatothing/lender-kit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏗 Lending dApp starter kit

a component for depositing & borrowing assets on Aave


quickstart

git clone https://github.com/Polygon-Academy/lender-kit

cd lender-kit
yarn install
yarn start
  • In a second terminal window run:
yarn fork

This branch uses a local fork of mainnet, which is easy to do with Hardhat (see here to learn more). The template configuration uses an Infura node, however this is not a full archive node, so it will only work for an hour or so. To get a long-lasting fork...

  • Go to alchemyapi.io and get an API key for mainnet
  • Replace the Infura URL with an Alchemy URL with your API key (i.e. https://eth-mainnet.alchemyapi.io/v2/<API_KEY_HERE>) into the fork script on line 28 of /packages/hardhat/package.json

📱 Open http://localhost:3000 to see the app

  • Send your burner wallet some ETH using the faucet
  • Swap some ETH for DAI
  • Go to "Lend" and Deposit DAI into Aave
  • Borrow whatever assets you want!

Notes:

  • The on-chain requests are quite heavy for this branch, so it can sometimes take the mainnet fork a little while to get going - you may need to refresh several times before everything is cached.

About

A demo fork of Aave

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 91.4%
  • Shell 5.1%
  • Dockerfile 1.4%
  • HTML 1.0%
  • TypeScript 0.6%
  • Solidity 0.4%
  • CSS 0.1%