Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 2.53 KB

SIP-0084_part-1.md

File metadata and controls

49 lines (36 loc) · 2.53 KB
SIP Title Author Status Track Created
0084
Deactivate Fallback Price Oracle Contract (Part 1)
Tyrone Johnson (@tjcloa)
Approved
Contract
2024-11-20

SIP-0084: Deactivate Fallback Price Oracle Contract (Part 1)

Description

The Sovryn Lending and Zero protocols currently use the Rootstock Oracle price feed on the RSK blockchain as a fallback price oracle for WRBTC in USD. This fallback oracle is triggered when the primary oracle returns a zero price.

The proposed change is prompted by the upcoming discontinuation of support for the Rootstock Oracle. After extensive research and analysis, it has been decided to deactivate the fallback oracle rather than replace it with another one. The primary Money-on-Chain oracle, which is decentralized, has demonstrated robust fault tolerance and reliability.

Additionally, the price feed contract logic has been updated to include a stale price parameter.
This ensures that outdated prices are not used and transactions will revert.
The proposed technical solution involves replacing the RSK oracle with a "dummy oracle" that always returns a zero price and marks it as stale.
This approach provides flexibility to replace the fallback oracle with another reliable oracle compliant with the Chainlink interface if the community decides to do so in the future.

Proposed Changes

Note that this is Part 1 of a two-part SIP.
Both proposals will need to be approved to effectuate the complete set of changes.
The exact change is implemented in the PR#549, details for this part are as follows.

If approved, this SIP will replace the WRBTC price oracle in the PriceFeeds contract used for the Lending protocol with the address of the new PriceFeedsMoC oracle contract that has the DummyFallbackOracle as the fallback price oracle.

Existing contracts

Contract Address
PriceFeedsMoC 0x391fe8a92a7FC626A25F30E8c19B92bf8BE37FD3
PriceFeeds 0x437AC62769f386b2d238409B7f0a7596d36506e4

New contracts

Contract Address
PriceFeedsMoC 0x50C53B463B67F2aF4c7B5b8E05643a39A0A4FDB9
DummyFallbackOracle 0x16261C66D8D687600E5CbF7945986044A6569cBe

License

Copyright and related rights waived via CC0.