Skip to content

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

Open
@scottincrypto

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions