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

Create data pipeline for loan states #78

Closed
lukaspetrasek opened this issue May 7, 2024 · 0 comments
Closed

Create data pipeline for loan states #78

lukaspetrasek opened this issue May 7, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers in progress review

Comments

@lukaspetrasek
Copy link
Collaborator

  1. Read data from an endpoint with raw events.
  2. Compute loan states using the existing code. Create a Dockerfile for continuously running the script.
  3. Create a db for storing loan states with the following structure:
  • block
  • timestamp
  • protocol (protocol name - zkLend, Nostra Mainnet, etc.)
  • user (wallet id)
  • collateral_token (token address)
  • collateral_amount
  • debt_token (token address)
  • debt_amount

Create a Dockerfile for
4) Save loan states to the loans states db.
5) Create an endpoint for reading loan states from the loans states db. Add the following parameters: protocol, user (optional), start block, end block, start datetime, end datetime. Set up rate limits - 10 requests per minute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers in progress review
Projects
None yet
Development

No branches or pull requests

2 participants