aave / protocol-subgraphs

The code of Aave protocol subgraphs
GNU Affero General Public License v3.0
122 stars 102 forks source link

Investigate oracle interface #102

Open defispartan opened 1 year ago

defispartan commented 1 year ago

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
    }
  }
}
jclagache commented 10 months ago

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.

defispartan commented 3 months ago

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

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