You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
users (where: {borrowedReservesCount_lt:0}) {
id
borrowedReservesCount
reserves {
reserve {
name
}
currentTotalDebt
currentATokenBalance
}
}
}
Expected behavior
The borrowedReservesCount should be always >=0. I assumed that a negative value meant that no reserves have been used for borrowing, however by querying
{
users (where: {borrowedReservesCount_lt:0}) {
id
borrowedReservesCount
reserves (where: {currentTotalDebt_gt:0}) {
reserve {
name
}
currentTotalDebt
currentATokenBalance
}
}
}
you can see that there are reserves with non zero debt (e.g.
There are occurrences of negative values for
borrowedReservesCount
field in the User schema.To Reproduce
On the playground https://thegraph.com/hosted-service/subgraph/aave/protocol-v2?version=current the
borrowedReservesCount
can be a negative value.Expected behavior
The
borrowedReservesCount
should be always >=0. I assumed that a negative value meant that no reserves have been used for borrowing, however by queryingyou can see that there are reserves with non zero debt (e.g.
The text was updated successfully, but these errors were encountered: