Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.29 KB

README.md

File metadata and controls

42 lines (30 loc) · 1.29 KB

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