-
Notifications
You must be signed in to change notification settings - Fork 42
Inter-medi[anizer]-ary: Add intermediary authorized medianizer access contract for Ropsten #576
Conversation
759e041
to
a3dd6b4
Compare
return _realMedianizer; | ||
} | ||
|
||
function read() external view returns (uint256) { |
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.
we use the peek
function too, in order to check if the medialized is active
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.
Well crap. That's going to require a new deployment. Wish we could just try/catch, but I guess that's for the land of Solidity 0.6.
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.
Amended this as part of the rebase.
a3dd6b4
to
4cd0999
Compare
7f3b274
to
628ccbb
Compare
@@ -5,12 +5,12 @@ pragma solidity 0.5.17; | |||
interface IMedianizer { | |||
/// @notice Get the current price. | |||
/// @dev May revert if caller not whitelisted. | |||
/// @return Price (USD) with 18 decimal places. | |||
/// @return Designated price with 18 decimal places. | |||
function read() external view returns (uint256); | |||
|
|||
/// @notice Get the current price and check if the price feed is active | |||
/// @dev May revert if caller not whitelisted. | |||
/// @return Price (USD) with 18 decimal places. |
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.
Price (USD) -> Designated price
like above?
with 18 decimal places
is tris true for all maker medianizers?
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.
It appears to be true for all of them, yes.
628ccbb
to
c187144
Compare
In preparation for an ETHBTC feed.
c187144
to
0677d2b
Compare
So that new system deployments don't require new contract authorizations on the Maker side, an intermediate medianizer has already been deployed to Ropsten for Maker to authorize. It is designed to have an updatable reference to the Maker medianizer, and pass through reads to that instance. The already-deployed address is added to the externals file, while the code is checked in to the price-feed directory, but not migrated as part of the system migrations.
0677d2b
to
2f5a57c
Compare
So that new system deployments don't require new contract authorizations
on the Maker side, an intermediate medianizer has already been deployed
to Ropsten for Maker to authorize. It is designed to have an updatable
reference to the Maker medianizer, and pass through reads to that
instance.
The already-deployed address is added to the externals file, while the
code is checked in to the price-feed directory, but not migrated as part
of the system migrations.
Still needed here:
Merging Price feed governable addition #545Rebase onto Price feed governable addition #545.Rebasing this against the resultingmaster
and aligning externals hookup.