This workshop serves an example about how to integrate Aave V2 flash loans to liquidate a loan from an unhealthy borrower position.
Open a terminal,clone this repository and Install dependencies
git clone [email protected]:kartojal/flash-loans-workshop.git
cd flash-loans-workshop
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.
This project uses scaffold-eth for fast bootstrapping. Thanks @austintgriffith!