New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C4: #35 #32, fixes rETH / cbETH / ankrETH ref unit and adds soft default checks #899
Conversation
2a592c5
to
5d7b0a7
Compare
5d7b0a7
to
d7f9211
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CBEth needs class-level documentation like rETH, as well
So the way out of this confusion was to get the units right. The 2nd feeds should be targetPerTok feeds instead of refPerTok, because the ref unit is ETH2. This suddenly clears everything up and makes it super obvious, and leads to, for example, catching that the pegPrice should be the reciprocal of what it was. |
@akshatmittal tagging you in on this one. believe it is correct now |
err -- @akshatmittal I'll save you some time since you're reviewing other PRs too, tagging in @pmckelvy1 |
CBEth: Uses oracle rather contract method to convert from tok to ref as outlined in raised report.
RETH: Same modification made as RETH is more or less implemented the same way.