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

feat: update oval oracle #10

Merged
merged 5 commits into from
Feb 7, 2024

Conversation

md0x
Copy link
Contributor

@md0x md0x commented Feb 2, 2024

Changes proposed in this PR:

  • Update Demo Oval oracle to use ChainlinkOvalImmutable from Oval-Quickstart repo
  • Update docs
  • Update deployment script

md0x added 2 commits February 2, 2024 15:02
Signed-off-by: Pablo Maldonado <pablo@umaproject.org>
Copy link

linear bot commented Feb 2, 2024

Signed-off-by: Pablo Maldonado <pablo@umaproject.org>
@md0x md0x marked this pull request as ready for review February 5, 2024 15:38
README.md Outdated Show resolved Hide resolved
@@ -3,7 +3,7 @@ pragma solidity 0.8.17;

import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol";
import {Address} from "@openzeppelin/contracts/utils/Address.sol";
import {IAggregatorV3Source} from "oval-contracts/interfaces/chainlink/IAggregatorV3Source.sol";
import {IAggregatorV3Source} from "oval-quickstart/ChainlinkOvalImmutable.sol";
Copy link
Member

Choose a reason for hiding this comment

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

this is great! I love how simple this is to get the new logic.

@@ -2,11 +2,9 @@

Copy link
Member

Choose a reason for hiding this comment

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

do you think we should add some text about how searchers can make money from this? we could add it later I guess as well.

Co-authored-by: Chris Maree <christopher.maree@gmail.com>
@md0x md0x requested a review from chrismaree February 7, 2024 15:09
Copy link
Member

@mrice32 mrice32 left a comment

Choose a reason for hiding this comment

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

LGTM!

--mnemonics "$MNEMONIC" \
--sender $DEPLOYER_WALLET \
--broadcast
export PRIVATE_KEY=0xPUT_YOUR_PRIVATE_KEY_HERE # This account will do the deployment
Copy link
Member

Choose a reason for hiding this comment

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

Do we allow both mnemonics and private keys? I feel like mnemonics are easier for the user

address chainlink = vm.envAddress("SOURCE_ADDRESS");
uint256 lockWindow = vm.envUint("LOCK_WINDOW");
uint256 maxTraversal = vm.envUint("MAX_TRAVERSAL");
address unlocker = vm.envAddress("UNLOCKERS");
Copy link
Member

Choose a reason for hiding this comment

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

In the README, this is called UNLOCKER, not UNLOCKERS. Since we only allow 1, I think UNLOCKER seems more correct.

import {HoneyPot} from "../src/HoneyPot.sol";
import {HoneyPotDAO} from "../src/HoneyPotDAO.sol";
import {ChronicleMedianSourceMock} from "../src/mock/ChronicleMedianSourceMock.sol";
import {ChainlinkOvalImmutable, IAggregatorV3Source} from "oval-quickstart/ChainlinkOvalImmutable.sol";
Copy link
Member

Choose a reason for hiding this comment

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

+1 great reuse of code

Signed-off-by: Pablo Maldonado <pablo@umaproject.org>
@md0x md0x merged commit c5707e5 into master Feb 7, 2024
3 checks passed
@md0x md0x deleted the pablo/uma-2345-update-demo-to-take-in-new-cl-price branch February 7, 2024 15:58
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.

3 participants