-
Notifications
You must be signed in to change notification settings - Fork 111
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
OETH L2 Base plugin #1225
OETH L2 Base plugin #1225
Conversation
|
||
/// @param config.chainlinkFeed - ignored | ||
/// @param config.oracleTimeout - ignored | ||
/// @param config.oracleError {1} Should be the oracle error for UoA/tok |
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.
this should be the combined oracle error I think, since it is applied post-product
{ | ||
// {tar/tok} | ||
// {ETH/wsuperOETHb} | ||
uint192 targetPerTok = _safeWrap(targetPerTokChainlinkFeed.price()) / 1e18; |
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.
I think this is an overflow risk, should probably move the paren outside the 1e18
|
||
/// @return {ref/tok} Quantity of whole reference units per whole collateral tokens | ||
/// {superOETHb/wsuperOETHb} | ||
function underlyingRefPerTok() public view override returns (uint192) { |
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.
could delete this function entirely if you change the inheritance to ERC4626FiatCollateral
closed in favor of #1226 🤦 |
#1223 closed in favor of this PR to get around github action stuff