add cpProxy

This commit is contained in:
owen05
2021-04-29 01:09:33 +08:00
parent c00366c24c
commit ad865968a0
6 changed files with 141 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ const MultiCall = artifacts.require("Multicall");
const LockedTokenVault = artifacts.require("LockedTokenVault");
const DODORouteProxy = artifacts.require("DODORouteProxy");
const DODOUpCpProxy = artifacts.require("DODOUpCpProxy");
const DODOCpProxy = artifacts.require("DODOCpProxy");
const DspTemplate = artifacts.require("DSP");
const DspFactory = artifacts.require("DSPFactory");
@@ -41,6 +42,7 @@ module.exports = async (deployer, network, accounts) => {
let DvmFactoryAddress = CONFIG.DVMFactory;
let DppFactoryAddress = CONFIG.DPPFactory;
let UpCpFactoryAddress = CONFIG.UpCpFactory;
let CpFactoryAddress = CONFIG.CrowdPoolingFactory;
let DODOCirculationHelperAddress = CONFIG.DODOCirculationHelper;
@@ -168,6 +170,20 @@ module.exports = async (deployer, network, accounts) => {
logger.log("UpCpProxy address: ", DODOUpCpProxy.address);
}
if (deploySwitch.CpProxy) {
logger.log("====================================================");
logger.log("network type: " + network);
logger.log("Deploy time: " + new Date().toLocaleString());
logger.log("Deploy type: DODOCpProxy");
await deployer.deploy(
DODOCpProxy,
WETHAddress,
CpFactoryAddress,
DODOApproveProxyAddress
);
logger.log("CpProxy address: ", DODOCpProxy.address);
}
if (deploySwitch.UpCP) {
logger.log("====================================================");