CarmineOptions / derisk-research

MIT License
4 stars 14 forks source link

Feature/add deposit column to loan state #108

Closed nicosanc closed 1 month ago

nicosanc commented 1 month ago

This PR adds a "deposit" column to the ZKLend Loan States table, to address issue #99 .

To avoid conflict with other updates of the loan states table, this column is added directly after the pandas DataFrame is created and filled using the "zklend_state.loan_entities", in data_handler/handlers/loan_states/zklend/run.py. The models.py and schema.py files were updated to include the optional 'deposit' column. Finally, a new migration file was generated, and migration was updated.