Refactor NostraAlpha loan states, fix interest rate indices in NostraDataParser #479
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #469
Event Processing and Parsing Updates:
apps/data_handler/handler_tools/data_parser/nostra.py
: Updated the indices forlending_index
andborrow_index
in theparse_interest_rate_model_event
function to correctly reflect the event data structure. [1] [2]Adding New Event Types:
apps/data_handler/handler_tools/nostra_alpha_settings.py
: Added new event types forinterest_bearing_collateral
andnon_interest_bearing_collateral
for both mint and burn events. [1] [2]Refactoring and Code Cleanup:
apps/data_handler/handlers/loan_states/abstractions.py
: Refactored theget_result_df
method to simplify the processing of loan entities and handle collateral data more robustly.apps/data_handler/handlers/loan_states/nostra_alpha/events.py
: Various refactoring changes including switching toget_async_symbol
for asynchronous symbol fetching, and adding helper methods_is_ignored_user
and_get_safe_interest_rate
to improve code readability and maintainability. [1] [2] [3] [4]