Skip to content

Update rETH price feed in cWETHv3 on Mainnet#1097

Open
MishaShWoof wants to merge 52 commits intocompound-finance:mainfrom
woof-software:woof-software/update-reth-oracle
Open

Update rETH price feed in cWETHv3 on Mainnet#1097
MishaShWoof wants to merge 52 commits intocompound-finance:mainfrom
woof-software:woof-software/update-reth-oracle

Conversation

@MishaShWoof
Copy link
Copy Markdown
Contributor

No description provided.


Due to the deprecation of the RETH / ETH Chainlink Oracle, the rETH price feed must be replaced with a new CAPO price feed that fetches the rETH / ETH exchange rate directly from the rETH contract. The new price feed retains the same CAPO parameters as the previous price feed.

Further detailed information can be found on the corresponding [proposal pull request](https://github.com/compound-finance/comet/pull/1097).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add link to CAPO forum post

expect(configuration.assetConfigs[rETHId].priceFeed).to.eq(newRETHPriceFeed);
expect((await comet.getAssetInfoByAddress(rETH.address)).priceFeed).to.equal(newRETHPriceFeed);
expect(oldRETHPriceFeed).to.not.equal(newRETHPriceFeed);
expect(await comet.getPrice(newRETHPriceFeed)).to.be.closeTo(await comet.getPrice(oldRETHPriceFeed), exp(0.01, 8));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check the upper value at the CAPO oracle rETH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants