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

Investigate oracle interface

Open defispartan opened this issue 2 years ago • 2 comments

Investigate why the Chainlink EACAggregator mappings are not working for some assets, and see if there is a general workaround:

wsteth, reth, cbeth, wbtc for ethereum v3 wsteth for arbitrum v3 savax on avalanche none on optimism/polygon

{
  reserves(first: 20,
  	where:{price_:{priceInEth:0}}) {
    id
    symbol
    price {
      id
      priceInEth
    }
  }
}

defispartan avatar Mar 28 '23 22:03 defispartan

Concerns Synchronicity Price Adapters used as asset sources in AaveOracle. There is no Chainlink price feed for these adapters. The Aave V3 subgraph seems to rely on the AnswerUpdated(indexed int256,indexed uint256,uint256) events of the AccessControlledAggregator contracts to populate its prices.

jclagache avatar Jan 08 '24 12:01 jclagache

Other examples include WBTC, wstETH, and WETH on Arbitrum V3

{
  reserves(where: {symbol_in: ["WETH", "WBTC", "wstETH"]}) {
    symbol
    price {
      priceInEth
    }
  }
}

defispartan avatar Aug 04 '24 03:08 defispartan