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: deploy PTweETHOracle #254

Merged
merged 1 commit into from
Apr 19, 2024
Merged

Conversation

GuillaumeNervoXS
Copy link
Contributor

No description provided.

@GuillaumeNervoXS GuillaumeNervoXS merged commit 2244a1a into main Apr 19, 2024
4 of 5 checks passed
@GuillaumeNervoXS GuillaumeNervoXS deleted the feat--deploy-PT-weETH-oracle branch April 19, 2024 07:08
Comment on lines +11 to +33
function run() external {
uint256 deployerPrivateKey = vm.envUint("DEPLOYER_PRIVATE_KEY");
address deployer = vm.addr(deployerPrivateKey);
vm.startBroadcast(deployerPrivateKey);

// TODO
uint256 chainId = CHAIN_ETHEREUM;
address coreBorrow = 0x5bc6BEf80DA563EBf6Df6D6913513fa9A7ec89BE;
uint32 _TWAP_DURATION = 30 minutes;
uint256 _MAX_IMPLIED_RATE = 0.5 ether;
// end TODO

MorphoFeedPTweETH oracle = new MorphoFeedPTweETH(
IAccessControlManager(address(coreBorrow)),
_MAX_IMPLIED_RATE,
_TWAP_DURATION
);
(, int256 answer, , , ) = oracle.latestRoundData();
console.log("oracle value ", uint256(answer));
console.log("Successfully deployed PT-weETH: ", address(oracle));

vm.stopBroadcast();
}

Check warning

Code scanning / Slither

Unused return Medium

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.

2 participants