-
Notifications
You must be signed in to change notification settings - Fork 10
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
Conversation
junkim012
commented
Mar 1, 2024
•
edited
Loading
edited
- 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
rsETH/wstETH Market Deployment
🚨 Report Summary
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 |
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.
Alter natspec comment from weETH
) { | ||
return 0; // collateral valuation is zero if oracle data is stale | ||
} else { | ||
// (ETH / weETH) / (ETH / stETH) = stETH / weETH |
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.
Change weETH comment
*/ | ||
function getPrice() public view override returns (uint256) { | ||
(, int256 ethPerRsEth,, uint256 ethPerRsEthUpdatedAt,) = REDSTONE_RSETH_ETH_PRICE_FEED.latestRoundData(); | ||
// ETH / weETH [8 decimals] |
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.
weETH comment
feat: UniswapFlashswapDirectMintHandler for rsETH
…on-protocol into jun/rsETH-oracles
… upgrade on block 19366309