Skip to content

codeislight1/aave-v2-liquidation-bot

Repository files navigation

Aave V2 liqudation bot

image info

This project demonstrates an Aave V2 on Ethereum Mainnet to keep up to date with the latest user's positions state, it utilizes MySql as a database to store user's reserves details using Prisma ORM.

You may use Xampp to host a local MySql database.

image info

Running the following to fetch block's logs:

yarn
npm run db-init
npx ts-node .\scripts\main.ts

Run to reset the database:

npm run db-reset

Running the following to get the underwater positions status:

npx ts-node .\scripts\liquidation.ts

Note that the current version is incomplete, you would need to extract the processed user reserves for underwater positions and evaluate them, as well as integrating it with your own smart contract to liquidate unhealthy positions.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published