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

rsETH/wstETH Market #61

Merged
merged 14 commits into from
Mar 6, 2024
Merged

rsETH/wstETH Market #61

merged 14 commits into from
Mar 6, 2024

Conversation

junkim012
Copy link
Collaborator

@junkim012 junkim012 commented Mar 1, 2024

  • Spot and Reserve Oracles for rsETH/wstETH
  • UniswapFlashswapDirectMintHandler for rsETH/wstETH
  • Deployment Scripts for rsETH/wstETH

build: compile to shanghai instead of paris for push0 support
Copy link

openzeppelin-code bot commented Mar 1, 2024

rsETH/wstETH Market Deployment

Generated at commit: 4fb9d209c805c9b8b649cd678a5304208f42dc7f

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
2
2
0
10
38
52
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
0
0
0

For more details view the full report in OpenZeppelin Code Inspector

import { SafeCast } from "@openzeppelin/contracts/utils/math/SafeCast.sol";

/**
* @notice The weETH spot oracle denominated in wstETH
Copy link
Contributor

Choose a reason for hiding this comment

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

Alter natspec comment from weETH

) {
return 0; // collateral valuation is zero if oracle data is stale
} else {
// (ETH / weETH) / (ETH / stETH) = stETH / weETH
Copy link
Contributor

Choose a reason for hiding this comment

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

Change weETH comment

*/
function getPrice() public view override returns (uint256) {
(, int256 ethPerRsEth,, uint256 ethPerRsEthUpdatedAt,) = REDSTONE_RSETH_ETH_PRICE_FEED.latestRoundData();
// ETH / weETH [8 decimals]
Copy link
Contributor

Choose a reason for hiding this comment

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

weETH comment

@junkim012 junkim012 requested a review from HrikB March 2, 2024 04:51
@HrikB HrikB force-pushed the jun/rsETH-oracles branch from af9307d to 5aa9df2 Compare March 5, 2024 02:38
@HrikB HrikB marked this pull request as ready for review March 6, 2024 21:55
@HrikB HrikB changed the title rsETH/wstETH Market Deployment rsETH/wstETH Market Mar 6, 2024
@HrikB HrikB merged commit 8d40e5e into master Mar 6, 2024
6 checks passed
@HrikB HrikB deleted the jun/rsETH-oracles branch March 6, 2024 22:11
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