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

Aave V2 Ethereum - reserve.totalLiquidityAsCollateral appears to be overstated in some markets #89

Open
scottincrypto opened this issue Jan 28, 2023 · 0 comments

Comments

@scottincrypto
Copy link

Describe the bug
In the Aave V2 Ethereum subgraph, the reserve.totalLiquidityAsCollateral return value appears to be incorrect for some markets. It returns a value which is greater than the reserve.totalLiquidity for that market.

Incorrect markets include stETH (below), USDC and Frax. This list isn't exhaustive - there may be more.

To Reproduce
Query:

query MyQuery {
  reserve(
    id: "0xae7ab96520de3a18e5e111b5eaab095312d7fe840xb53c1a33016b2dc2ff3653530bff1848a515c8c5"
    block: {number: 16501589}
  ) {
    totalLiquidity
    totalLiquidityAsCollateral
  }
}

Response:

{
  "data": {
    "reserve": {
      "totalLiquidity": "899695114262182690563902",
      "totalLiquidityAsCollateral": "1070577614223086581220014"
    }
  }
}

Expected behavior
The totalLiquidityAsCollateral value should be less than or equal to the totalLiquidity value.

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

No branches or pull requests

1 participant