Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 950 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 950 Bytes

bay-watcher-ts

The secondary ETL service for Yield Bay. This is used to index protocols which offer APIs in TypeScript.

Getting Started

  • Use the same database which was set up for bay-watcher
  • Copy sample env file cp .env.sample .env and set env variables.
  • yarn install
  • yarn build
  • yarn start

Integration Details

  • The integrations are done inside src/tasks directory.
  • The Karura and Mangata protocols had SDKs only in TypeScript, so we included them here.
  • Sirius has their own API to compute farm data, so we used some of their code here. (We also have an open PR in their repo).
  • Arthswap Single Staking farm is also implemented here, due to some issue with ethers-rs not working properly with a particular solidity function.
  • We run all the tasks every 5 minutes, as shown in src/main.ts.