Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor and add more pools to scallop #68

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

fum-is-chum
Copy link
Contributor

@fum-is-chum fum-is-chum commented Jan 6, 2025

TODOS

  • Refactor code to use queryMutlipleObjects wherever possible (reducing rpc requests significantly)
  • Add suppliedLtvs, borrowedWeights to obligationsFetcher.ts
  • Add borrowWeight, collateralFactor, borrowIndex to MarketJobResult
  • Fix debt increase rate calculation
  • Add borrowYields for borrow incentive program

NOTE

First run npx nx run plugins:serve-cache in first terminal

Then in second terminal:

Lending:

npx nx run plugins:run-job scallop-market && npx nx run plugins:run-fetcher scallop-lendings \"0x...\"

Obligations:

npx nx run plugins:run-job scallop-market && npx nx run plugins:run-fetcher scallop-obligations \"0x...\"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant