Skip to content

Commit

Permalink
Deploy COMP / wstETH price feed (#927)
Browse files Browse the repository at this point in the history
Co-authored-by: dmitriy-woof-software <[email protected]>
Co-authored-by: GitHub Actions Bot <>
  • Loading branch information
MishaShWoof and dmitriy-woof-software authored Nov 21, 2024
1 parent 1b36bc7 commit 625eff0
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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<boolean> {
return true;
},

async verify() {}
});

0 comments on commit 625eff0

Please sign in to comment.