Skip to content
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

[liquidations] fix aave v2 adapter #4252

Merged
merged 2 commits into from
Oct 11, 2022
Merged

[liquidations] fix aave v2 adapter #4252

merged 2 commits into from
Oct 11, 2022

Conversation

0xStrobe
Copy link
Contributor

Aave V2 subgraph has a bug where borrowedReservesCount can be -1, but it's supposed to be always >=0. We used it to filter out the users who don't have a borrow.

Now we use nested conditionals to do the filtering

see also aave/protocol-subgraphs#77

@0xStrobe 0xStrobe merged commit f2ebba5 into DefiLlama:main Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant