- This bot will check for unhealthy loans using TheGraph
- Calculate profits
- Output details of unhealthy loan if its profitable to liquidate
- Execute liquidation of the loans
- All contracts can be found in
/contracts
- Can be deployed to Kovan for testing or MAINNET
- Currently this script is not setup to call the contract, it must be done manually.
- Remaining task is to automate the liquidation. This shouldn't be hard to do since the contract is already in place.
-
Install dependencies
npm install
-
Deploy contract All contracts can be found in
/contracts
-
Specify the chain to use via APP_CHAIN_ID
-
Execute liquidation script
npm run build
npm start
Thanks to this repo for providing a base to start with. https://github.com/ialberquilla/aave-liquidation