-
Notifications
You must be signed in to change notification settings - Fork 148
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
Add wUSDM as collateral to USDT market on Optimism #945
base: main
Are you sure you want to change the base?
Add wUSDM as collateral to USDT market on Optimism #945
Conversation
…ware/comet into woof-software/add-wusdm-to-optimism-usdt
combinedScale = signed256(10 ** (rateProviderDecimals + underlyingDecimals)); | ||
description = description_; | ||
|
||
if (decimals_ > 18) revert BadDecimals(); |
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.
nit: having this comparison at the beginning might be better for readability
uint256 rate = IERC4626(rateProvider).convertToAssets(10**rateProviderDecimals); | ||
(uint80 roundId_, int256 underlyingPrice, uint256 startedAt_, uint256 updatedAt_, uint80 answeredInRound_) = AggregatorV3Interface(underlyingPriceFeed).latestRoundData(); | ||
|
||
if (rate <= 0 || underlyingPrice <= 0) return (roundId_, 0, startedAt_, updatedAt_, answeredInRound_); |
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.
nit: since rate
is unit256, ==
can be used instead of <=
to avoid misunderstand.
…ware/comet into woof-software/add-wusdm-to-optimism-usdt
…are/add-wusdm-to-optimism-usdt
b404262
to
7e4a0f3
Compare
7e4a0f3
to
6116139
Compare
No description provided.