Skip to content

Max-3-7/liquidation-bot-monitoring

Repository files navigation

Trader Joe lending monitoring

  1. Monitor underwater accounts via TraderJoe lending subgraph
  2. Determine which assets to repay and seize
  3. Trigger the liquidate method of a contract with three parameters : borrower address, asset to repay, asset to seize

Installation

npm install

Commands

Run the application

npm run start

Print low health accounts

npm run print

Screenshot 2021-12-17 at 23 10 04

Test

npm run test

Configuration

Environment variables

ENV Variable Description
PROVIDER_URL Avalanche network URL
THEGRAPH_BASE_URL TraderJoe lending subgraph URL
TRADERJOE_LIQUIDATOR_ADDRESS Avalanche C-Chain address of the liquidator contract
OWNER_PRIVATE_KEY Owner of TRADERJOE_LIQUIDATOR_ADDRESS

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published