Skip to content
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

New poly oracle #274

Merged
merged 7 commits into from
Sep 24, 2018
Merged

New poly oracle #274

merged 7 commits into from
Sep 24, 2018

Conversation

adamdossa
Copy link
Contributor

@adamdossa adamdossa commented Sep 21, 2018

MakerDAOOracle can be reused for multiple oracles (Medianizer contracts)

@@ -6,39 +6,57 @@ import "openzeppelin-solidity/contracts/ownership/Ownable.sol";

contract MakerDAOOracle is IOracle, Ownable {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adamdossa since we removed all references to MakerDAO in the code, do you want to rename the contract too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think it is OK to leave. This contract will only work w/ MakerDAO deployed Medianizer contracts.

* @param _medianizer Address of Maker medianizer
*/
function changeMedianier(address _medianizer) public onlyOwner {
emit LogChangeMedianizer(_medianizer, medianizer, now);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

require _medianizer != address(0)?

@adamdossa
Copy link
Contributor Author

@satyamakgec FYI - I changed to using an interface for the Medianizer which gets rid of some of the warnings.

@satyamakgec satyamakgec merged commit 706a464 into development-1.5.0 Sep 24, 2018
@adamdossa adamdossa deleted the new_poly_oracle branch January 11, 2019 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants