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.
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:
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.