Skip to content

Latest commit

 

History

History
72 lines (47 loc) · 6.3 KB

PRICE-FEEDS-UPDATE-AAVE-V2-V3-04-05-2023.md

File metadata and controls

72 lines (47 loc) · 6.3 KB
title author shortDescription discussions created
Price feeds operational update
BGD Labs (@bgdlabs)
Swap price adapters for wbtc and LSTs, and activation of optimism price oracle sentinel
2023-05-04

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:

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.