- Find liquidatable loans from the Aave
- Calculate profits with own collateral
- Output details of unhealthy loan (checking health factor) if its profitable to liquidate
- Execute liquidation of the loans
- All contracts can be found in
/contracts
- Can be deployed to Goerli for testing
- 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/Songark/aave-liquidation-bot