-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploy COMP / wstETH price feed (#927)
Co-authored-by: dmitriy-woof-software <[email protected]> Co-authored-by: GitHub Actions Bot <>
- Loading branch information
1 parent
1b36bc7
commit 625eff0
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
deployments/mainnet/wsteth/migrations/1727096902_comp_wsteth_pricefeed.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() {} | ||
}); |