Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions contract-addresses/mainnetAddresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,18 @@ const MainnetAddresses = {
artifactName: 'ERC20CompoundPCVDeposit',
address: '0x91f50E3183a8CC30D2A981C3aFA85A2Bf6691c67'
},
rariPool28FeiPCVDeposit: {
artifactName: 'ERC20CompoundPCVDeposit',
address: '0xb0D5eBA35E1cecE568096064Ed68A49C6A24d961'
},
rariPool31FeiPCVDeposit: {
artifactName: 'ERC20CompoundPCVDeposit',
address: '0x81DCB06eA4db474D1506Ca6275Ff7D870bA3A1Be'
},
rariPool54FeiPCVDeposit: {
artifactName: 'ERC20CompoundPCVDeposit',
address: '0x9d28B8Cb17c3E25b6Cce17f88B259f75174b69f4'
},
rariPool6Fei: { artifactName: 'CErc20Delegator', address: '0x185Ab80A77D362447415a5B347D7CD86ecaCC87C' },
rariPool6FeiPCVDeposit: {
artifactName: 'ERC20CompoundPCVDeposit',
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"size-contracts": "npx hardhat size-contracts",
"deploy:localhost": "npx hardhat run --network localhost scripts/deploy/migrations.js",
"deploy:main": "npx hardhat run --network mainnet scripts/deploy/migrations.js",
"deploy:fuse": "DEPLOY_FILE=compoundPCVDeposit npx hardhat run --network mainnet scripts/deploy/migrations.js",
"deploy:ropsten": "npx hardhat run --network ropsten scripts/deploy/migrations.js",
"deploy:rinkeby": "npx hardhat run --network rinkeby scripts/deploy/migrations.js",
"abis": "node scripts/abis.js",
Expand Down
27 changes: 0 additions & 27 deletions scripts/deploy/compoundPCVDeposit.js

This file was deleted.

23 changes: 23 additions & 0 deletions scripts/deploy/compoundPCVDeposit.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { DeployUpgradeFunc } from '@custom-types/types';
import { ethers } from 'hardhat';

export const deploy: DeployUpgradeFunc = async (deployAddress: string, addresses, logging = false) => {
const { core, fei } = addresses;

const CTOKEN = process.env.CTOKEN;

if (!CTOKEN) {
throw new Error('CTOKEN environment variable contract address is not set');
}

if (!core || !fei) {
throw new Error('An environment variable contract address is not set');
}

const erc20CompoundPCVDepositFactory = await ethers.getContractFactory('ERC20CompoundPCVDeposit');
const erc20CompoundPCVDeposit = await erc20CompoundPCVDepositFactory.deploy(core, CTOKEN, fei);

logging && console.log('EthCompoundPCVDeposit deployed to: ', erc20CompoundPCVDeposit.address);

return { erc20CompoundPCVDeposit };
};