Skip to content

Commit e86046d

Browse files
committed
refactor: combine both proposals
1 parent 1423b6c commit e86046d

File tree

3 files changed

+27
-30
lines changed

3 files changed

+27
-30
lines changed

block.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
15008550
1+
15013451

proposals/dao/cr_oracle_cleanup.ts

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,31 @@ const deploy: DeployUpgradeFunc = async (deployAddress: string, addresses: Named
3333
await voltOracle.deployed();
3434
logging && console.log(`voltOracle: ${voltOracle.address}`);
3535

36+
////// Deploy empty PCV deposits for remaining PCV assets
37+
// Deploy empty PCV deposits for ERC20 assets
38+
const ERC20HoldingPCVDepositFactory = await ethers.getContractFactory('ERC20HoldingPCVDeposit');
39+
const wethHoldingDeposit = await ERC20HoldingPCVDepositFactory.deploy(addresses.core, addresses.weth);
40+
await wethHoldingDeposit.deployTransaction.wait();
41+
logging && console.log('WETH holding deposit deployed to: ', wethHoldingDeposit.address);
42+
43+
const lusdHoldingDeposit = await ERC20HoldingPCVDepositFactory.deploy(addresses.core, addresses.lusd);
44+
await lusdHoldingDeposit.deployTransaction.wait();
45+
logging && console.log('LUSD holding deposit deployed to: ', lusdHoldingDeposit.address);
46+
47+
const voltHoldingDeposit = await ERC20HoldingPCVDepositFactory.deploy(addresses.core, addresses.volt);
48+
await voltHoldingDeposit.deployTransaction.wait();
49+
logging && console.log('VOLT holding deposit deployed to: ', voltHoldingDeposit.address);
50+
51+
const daiHoldingDeposit = await ERC20HoldingPCVDepositFactory.deploy(addresses.core, addresses.dai);
52+
await daiHoldingDeposit.deployTransaction.wait();
53+
logging && console.log('DAI holding deposit deployed to: ', daiHoldingDeposit.address);
54+
3655
return {
37-
voltOracle
56+
voltOracle,
57+
wethHoldingDeposit,
58+
lusdHoldingDeposit,
59+
voltHoldingDeposit,
60+
daiHoldingDeposit
3861
};
3962
};
4063

@@ -68,32 +91,6 @@ const setup: SetupUpgradeFunc = async (addresses, oldContracts, contracts, loggi
6891
const cycleEnd: BigNumber = await tokemakManager.nextCycleStartTime();
6992
await time.increaseTo(cycleEnd.add(1));
7093
await tokemakManager.completeRollover(IPFS_JSON_FILE_HASH);
71-
72-
////// Deploy empty PCV deposits for remaining PCV assets
73-
// Deploy empty PCV deposits for ERC20 assets
74-
const ERC20HoldingPCVDepositFactory = await ethers.getContractFactory('ERC20HoldingPCVDeposit');
75-
const wethHoldingDeposit = await ERC20HoldingPCVDepositFactory.deploy(addresses.core, addresses.weth);
76-
await wethHoldingDeposit.deployTransaction.wait();
77-
logging && console.log('WETH holding deposit deployed to: ', wethHoldingDeposit.address);
78-
79-
const lusdHoldingDeposit = await ERC20HoldingPCVDepositFactory.deploy(addresses.core, addresses.lusd);
80-
await lusdHoldingDeposit.deployTransaction.wait();
81-
logging && console.log('LUSD holding deposit deployed to: ', lusdHoldingDeposit.address);
82-
83-
const voltHoldingDeposit = await ERC20HoldingPCVDepositFactory.deploy(addresses.core, addresses.volt);
84-
await voltHoldingDeposit.deployTransaction.wait();
85-
logging && console.log('VOLT holding deposit deployed to: ', voltHoldingDeposit.address);
86-
87-
const daiHoldingDeposit = await ERC20HoldingPCVDepositFactory.deploy(addresses.core, addresses.dai);
88-
await daiHoldingDeposit.deployTransaction.wait();
89-
logging && console.log('DAI holding deposit deployed to: ', daiHoldingDeposit.address);
90-
91-
return {
92-
wethHoldingDeposit,
93-
lusdHoldingDeposit,
94-
voltHoldingDeposit,
95-
daiHoldingDeposit
96-
};
9794
};
9895

9996
// Tears down any changes made in setup() that need to be

protocol-configuration/proposalsConfig.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ProposalCategory, TemplatedProposalsConfigMap } from '@custom-types/types';
22
import cr_oracle_cleanup from '@proposals/description/cr_oracle_cleanup';
3-
import pod_executor_v2 from '@proposals/description/pod_exec_v2';
3+
import pod_exec_v2 from '@proposals/description/pod_exec_v2';
44

55
const proposals: TemplatedProposalsConfigMap = {
66
cr_oracle_cleanup: {
@@ -15,7 +15,7 @@ const proposals: TemplatedProposalsConfigMap = {
1515
pod_exec_v2: {
1616
deploy: false, // deploy flag for whether to run deploy action during e2e tests or use mainnet state
1717
totalValue: 0, // amount of ETH to send to DAO execution
18-
proposal: pod_executor_v2, // full proposal file, imported from '@proposals/description/fip_xx.ts'
18+
proposal: pod_exec_v2, // full proposal file, imported from '@proposals/description/fip_xx.ts'
1919
proposalId: '',
2020
affectedContractSignoff: [],
2121
deprecatedContractSignoff: [],

0 commit comments

Comments
 (0)