protocol-subgraphs icon indicating copy to clipboard operation
protocol-subgraphs copied to clipboard

Aave Arc USDC priceInEth is incorrect

Open OwenKane opened this issue 3 years ago • 0 comments

Describe the bug Aave ARC subgraph seems to providing a incorrect priceInEth value of USDC when compared to the price returned from the on-chain Oracle (and Aave v2 sub-graph).

Screenshot 2022-11-03 at 10 44 18 AM

Screenshot 2022-11-03 at 10 24 35 AM

To Reproduce Run any query that will return USDC price in eth E.g

{
   users(
      first: 1,
      skip: 9,
      orderBy:id,
      orderDirection:desc,
      where:{
         borrowedReservesCount_gt:0
      }
   )
   {
      id
      collateralReserve:reserves(
         where:{
            currentATokenBalance_gt:0
            reserve_:{symbol: "USDC"}
         }
      ){
         currentATokenBalance
         reserve{
            symbol
            underlyingAsset
            price{
               priceInEth
            }
         }
      }
   }
}

Expected behavior Price returned from subgraph to match on chain oracle price

OwenKane avatar Nov 03 '22 09:11 OwenKane