-
Notifications
You must be signed in to change notification settings - Fork 146
Open
Labels
onlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source week
Description
Guideline
- Carefully read the issue description before applying to ensure you have all the necessary information to start working on it.
- Write a brief description of how you will approach the task (without using ChatGPT).
- Add your Telegram handler in your application (e.g., in OnlyDust or similar)
- Write ETA in your application
What should I do if I have a problem
- Try to google it before asking. Googling is taking major part of dev work
- If you couldn't find answer your question with Google, text your question to dev group with your question.
- Do not send DM to maintainer, it would be better and faster to ask other contributors in chat
How to prepare PR
- Check if your code smell good
- Add close # to link your issue with your PR
- Do not commit changes which is not related to your task
- Check after you created PR, if you committed everything.
Task description
- Explore
apps/data_handler/handlers/loan_states - Under each protocol you can find a
run.pyfile with arunfunction - The problem is that the
last_blockis fetched from the loan_states table or is set to zero if not found. Then it starts fetching data with a step of 1000 (PAGINATION_SIZE). If no data is fetched in the range [0, max_retries * PAGINATION_SIZE], then nothing is saved to the database. Consequently, the next time the function runs, it starts withlast_block == 0again, which leads to a situation where data can never be fetched - Your task is to fix this. You can create another table to store the
latest_blockfor each protocol
PS: Search for FIRST_RUNNING_MAPPING
Metadata
Metadata
Assignees
Labels
onlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source week