Skip to content
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

Closed
wants to merge 7 commits into from
Closed

OETH L2 Base plugin #1225

wants to merge 7 commits into from

Conversation

tbrent
Copy link
Collaborator

@tbrent tbrent commented Nov 6, 2024

#1223 closed in favor of this PR to get around github action stuff

  • OETH plugin and tests for L2 Base.


/// @param config.chainlinkFeed - ignored
/// @param config.oracleTimeout - ignored
/// @param config.oracleError {1} Should be the oracle error for UoA/tok
Copy link
Collaborator Author

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;
Copy link
Collaborator Author

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) {
Copy link
Collaborator Author

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

@tbrent tbrent closed this Nov 6, 2024
@tbrent
Copy link
Collaborator Author

tbrent commented Nov 6, 2024

closed in favor of #1226 🤦

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