-
Notifications
You must be signed in to change notification settings - Fork 12
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
[SC-423] Add upgradable oracle #21
Conversation
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.
One imo non-blocking minor nitpick. Other than that looks good.
test/mocks/PriceSourceMock.sol
Outdated
) { | ||
return (0, latestAnswer, 0, 0, 0); | ||
} | ||
|
||
} |
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.
A new line could be added at the end since the file is edited
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.
done, added to the other file too
uint80 answeredInRound | ||
) { | ||
return (0, latestAnswer, 0, 0, 0); |
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 returning all values from the tuple since they're all returned from the oracle, can add another setter setLatestRoundData to set these values within the mock.
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've further restricted what gets returned and refactored the interface setup to not overload the price source one.
I refactored this a bit to make it more clear it's specific to Morpho Blue instead of a general upgradable oracle. |
Coverage after merging SC-423-upgradable-oracle into master will be
Coverage Report
|
Allows swapping an oracle price feed for Morpho Blue. This will be used by Spark Gov to set the oracle for markets on Morpho Blue.