FeedProjects
Developers
Settings
🎉 A new chapter begins: Boardroom has joined Agora
Learn more
protocol logo
Explore / Projects
Aave

Insights

Proposals

Discussions

Members

Information

Reports

Create Proposal

Aave

InsightsProposalsDiscussionsMembersInformationReports
ProposalExecutable Code
Back to Proposals
executedEnded 3 years ago Â·  Onchain

Price feeds operational update

By 0xf71f...c61E02

Simple Summary

This proposal changes the following price adapters and price oracle sentinel:

  • WBTC on Ethereum v2 to the custom WBTC / BTC / ETH
  • wstETH on Optimism and Arbitrum v3 to wstETH / ETH / USD
  • MATICX on Polygon v3 to the custom adapter, which uses MATIC / USD CL feed and MATICX / MATIC on-chain rate
  • stMATIC on Polygon v3 to the custom adapter, which utilizes MATIC / USD CL feed and stMATIC / MATIC on-chain rate
  • price oracle sentinel is configured for Optimism V3

Motivation

The current price feeds for certain ETH and MATIC LSTs can result in artificial volatility due to de-synchronization between different asset/PEG feeds. Additionally, the Aave community already pre-approved pricing WBTC on Aave v2 based on a WBTC feed, and not assuming that its price is the one provided by BTC/ETH.

To address this problem and enhance the stability of the Aave platform, we propose to change the price feeds for wstETH on Optimism and Arbitrum to a custom price adapter that calculates the wstETH / ETH / USD price and is based on Chainlink’s feeds under the hood. The same approach is already used for the wstETH on Polygon and WBTC on Aave V3.

WBTC price feed will use the same adapter implementation, but with the WBTC / BTC / ETH inside.

MaticX and stMatic price feeds will be swapped for a special adapter, which utilizes on-chain rate.

As the Chainlink sequencer feed is available for Optimism, it also makes sense to configure the price oracle sentinel for Aave V3 Optimism, so that all L2 Aave V3 markets where the the Chainlink feed is available, are in sync.

Specification

Upon execution, the proposal will:

  • call ORACLE.setAssetSources([0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599], [0xFD858c8bC5ac5e10f01018bC78471bb0DC392247]) to replace the price source for WBTC on Aave v2
  • call AaveV3Optimism.POOL_ADDRESSES_PROVIDER.setPriceOracleSentinel(0xB1ba0787Ca0A45f086F8CA03c97E7593636E47D5) to set the price oracle sentinel on the pool addresses provider
  • use Config Engine to update wstETH price feed to 0x05225Cd708bCa9253789C1374e4337a019e99D56 on Optimism
  • use Config Engine to update wstETH price feed to 0x3105C276558Dd4cf7E7be71d73Be8D33bD18F211 on Arbitrum
  • use Config Engine to update MATICX price feed to 0x0e1120524e14Bd7aD96Ea76A1b1dD699913e2a45 on Polygon
  • use Config Engine to update stMATIC price feed to 0xEe96b77129cF54581B5a8FECCcC50A6A067034a1 on Polygon

Security and additional considerations

Custom price adapters are already widely used in the system for price-correlated assets and were reviewed by the auditors.

  • MaticX Historical Feeds Comparison: Comparing the answers from the current feed with the new one for the last 280 days (since CL feed was deployed) with a 4-hour step gave the following results:

    • 35.91% of results differ for less than 0.1%
    • 62.06% have between 0.1% and 0.5% difference
    • 2.03% is between 0.5% and 1%

We also additionally double-checked all points of centralisation of MaticX to be sure that no on-chain manipulation of rates is possible.

  • stMatic Historical Feeds Comparison: Comparing the answers from the current feed with the new one for the last 327 days (since CL feed was deployed) with a 4-hour step gave the following results:
    • 95.39% of results differ for less than 0.1%
    • 4.5% have between 0.1% and 0.5% difference
    • 0.11% is between 0.5% and 1%

All points of centralisation of stMatic were also checked to be sure that on-chain manipulation of rates is impossible.

References

Tests: Ethereum V2, Optimism, Arbitrum, Polygon

Proposal payload implementation: Ethereum V2, Optimism, Arbitrum, Polygon

Price Adapters: WBTC, wstETH Optimism, wstETH Arbitrum, MaticX, stMATIC

Copyright

Copyright and related rights waived via CC0.

Continue Reading
Connect Wallet to Add Note
0
Votes 17
VoterCast PowerVote & Rationale
0x329c...543eD4
232,185

YAE

FranklinDAO (Prev. Penn Blockchain)
108,538

YAE

0x62a4...96816a
82,432

YAE

0x13BD...138548
81,393

YAE

0xB83b...Fbcf5C
81,016

YAE

SHOW MORE
VOTE POWER
0
Connect Wallet
Proposal Status
  • Mon May 29 2023, 07:43 pmPublished Onchain 0xf71f...c61E02
  • Tue May 30 2023, 08:03 pmVoting Period Starts
  • Fri June 02 2023, 12:58 pmEnd Voting Period
  • Fri June 02 2023, 12:58 pmQueue Proposal
  • Sat June 03 2023, 12:58 pmExecute Proposal
Current Results

1-YAE

647,551.4

2-NAY

N/A Tokens

0%
Quorum 647,551.4/320,000
DocumentationBrandingContact Us