-
Notifications
You must be signed in to change notification settings - Fork 114
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
loans with low health factor chard added #368
loans with low health factor chard added #368
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, use DashboardDataHandler
for fetching data instead of fetching data from file
def add_leading_zeros(hash: str) -> str: | ||
""" | ||
Converts e.g. `0x436d8d078de345c11493bd91512eae60cd2713e05bcaa0bb9f0cba90358c6e` to | ||
`0x00436d8d078de345c11493bd91512eae60cd2713e05bcaa0bb9f0cba90358c6e`. | ||
""" | ||
return "0x" + hash[2:].zfill(64) | ||
|
||
|
||
def load_data(protocol: str) -> tuple[dict[str, pd.DataFrame], pd.DataFrame]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rework this code, we don't need to use it anymore, we will work with DB
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
Loans with low health factor
usingdata_handler
data