From 625eff0b867298bf978084fe22fcf3d403bde9b6 Mon Sep 17 00:00:00 2001 From: MishaShWoof Date: Thu, 21 Nov 2024 23:37:45 +0200 Subject: [PATCH] Deploy COMP / wstETH price feed (#927) Co-authored-by: dmitriy-woof-software Co-authored-by: GitHub Actions Bot <> --- .../1727096902_comp_wsteth_pricefeed.ts | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 deployments/mainnet/wsteth/migrations/1727096902_comp_wsteth_pricefeed.ts diff --git a/deployments/mainnet/wsteth/migrations/1727096902_comp_wsteth_pricefeed.ts b/deployments/mainnet/wsteth/migrations/1727096902_comp_wsteth_pricefeed.ts new file mode 100644 index 000000000..f7a2a821d --- /dev/null +++ b/deployments/mainnet/wsteth/migrations/1727096902_comp_wsteth_pricefeed.ts @@ -0,0 +1,29 @@ +import { DeploymentManager } from '../../../../plugins/deployment_manager/DeploymentManager'; +import { migration } from '../../../../plugins/deployment_manager/Migration'; + +const COMP_ETH_PRICE_FEED_ADDRESS = '0x1B39Ee86Ec5979ba5C322b826B3ECb8C79991699'; + +export default migration('1727096902_comp_wsteth_pricefeed', { + async prepare(deploymentManager: DeploymentManager) { + const wstETHToETHPriceFeed = await deploymentManager.fromDep('wstETH:priceFeed', 'mainnet', 'weth', true); + const _compPriceFeed = await deploymentManager.deploy( + 'COMP:priceFeed', + 'pricefeeds/ReverseMultiplicativePriceFeed.sol', + [ + COMP_ETH_PRICE_FEED_ADDRESS, // COMP / ETH price feed + wstETHToETHPriceFeed.address, // wstETH / ETH price feed (reversed) + 8, // decimals + 'COMP / wstETH price feed' // description + ] + ); + return { compPriceFeedAddress: _compPriceFeed.address }; + }, + + async enact() {}, + + async enacted(): Promise { + return true; + }, + + async verify() {} +});