Skip to content

zk1tty/collateral-swap-aave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Collateral Swap

This repo is forked from kartojal/flash-loans-workshop.

technical stack

  • Aave V2 flash loans to liquidate a loan from an unhealthy borrower position.
  • Add monitor_userAddress.js and monitor_collateralAsset.js
  • Borrow more lucrative asset as collateral with InstaDapp's SDK
  • Switch network to Mumbai(Polygon's testnet)
    • Switch from Uniswap contract to QuickSwap one

demo video

Get started

Open a terminal,clone this repository and Install dependencies

git clone git@github.com:suricata3838/collateral-swap-aave.git

cd collateral-swap-aave

yarn

Open three terminals, and run the following in each terminal:

yarn start
ALCHEMY_RPC="YOUR ALCHEMY RPC URL" yarn fork
yarn deploy

A browser should start pointing to http://localhost:3000 with a minimal frontend.

Made possible by

This project uses scaffold-eth for fast bootstrapping. Thanks @austintgriffith!

About

Simple Collateral Swap on AAVE at HackMoney Hackathon 2021

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors