Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Inter-medi[anizer]-ary: Add intermediary authorized medianizer access contract for Ropsten #576

Merged
merged 2 commits into from
Apr 15, 2020

Conversation

Shadowfiend
Copy link
Contributor

@Shadowfiend Shadowfiend commented Apr 13, 2020

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:

return _realMedianizer;
}

function read() external view returns (uint256) {
Copy link
Contributor

@NicholasDotSol NicholasDotSol Apr 14, 2020

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

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.

@Shadowfiend Shadowfiend changed the base branch from master to price-feed-gov April 15, 2020 00:23
@Shadowfiend Shadowfiend force-pushed the inter-medianizer-ary branch 2 times, most recently from 7f3b274 to 628ccbb Compare April 15, 2020 02:10
@Shadowfiend Shadowfiend marked this pull request as ready for review April 15, 2020 02:11
@@ -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.
Copy link
Contributor

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?

Copy link
Contributor Author

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.

In preparation for an ETHBTC feed.
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.
@NicholasDotSol NicholasDotSol merged commit 999b75e into price-feed-gov Apr 15, 2020
@NicholasDotSol NicholasDotSol deleted the inter-medianizer-ary branch April 15, 2020 18:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants