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 Arc USDC priceInEth is incorrect #86

Open
OwenKane opened this issue Nov 3, 2022 · 0 comments
Open

Aave Arc USDC priceInEth is incorrect #86

OwenKane opened this issue Nov 3, 2022 · 0 comments

Comments

@OwenKane
Copy link

OwenKane commented Nov 3, 2022

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

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