-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: update oval oracle #10
Conversation
Signed-off-by: Pablo Maldonado <pablo@umaproject.org>
Signed-off-by: Pablo Maldonado <pablo@umaproject.org>
@@ -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"; |
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 is great! I love how simple this is to get the new logic.
@@ -2,11 +2,9 @@ | |||
|
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.
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>
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.
LGTM!
--mnemonics "$MNEMONIC" \ | ||
--sender $DEPLOYER_WALLET \ | ||
--broadcast | ||
export PRIVATE_KEY=0xPUT_YOUR_PRIVATE_KEY_HERE # This account will do the deployment |
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.
Do we allow both mnemonics and private keys? I feel like mnemonics are easier for the user
script/HoneyPot.s.sol
Outdated
address chainlink = vm.envAddress("SOURCE_ADDRESS"); | ||
uint256 lockWindow = vm.envUint("LOCK_WINDOW"); | ||
uint256 maxTraversal = vm.envUint("MAX_TRAVERSAL"); | ||
address unlocker = vm.envAddress("UNLOCKERS"); |
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.
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"; |
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.
+1 great reuse of code
Signed-off-by: Pablo Maldonado <pablo@umaproject.org>
Changes proposed in this PR:
ChainlinkOvalImmutable
from Oval-Quickstart repo