diff --git a/migrations/3_deploy_v2.js b/migrations/3_deploy_v2.js index 2c76ffd..ffcf4e7 100644 --- a/migrations/3_deploy_v2.js +++ b/migrations/3_deploy_v2.js @@ -139,7 +139,6 @@ module.exports = async (deployer, network, accounts) => { DODOSellHelperAddress = "0x0F859706AeE7FcF61D5A8939E8CB9dBB6c1EDA33"; WETHAddress = "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c"; chiAddress = "0x0000000000000000000000000000000000000000"; - DODOCalleeHelperAddress = "0x0000000000000000000000000000000000000000"; DODORouteV2HelperAddress = "0x0000000000000000000000000000000000000000"; //Template @@ -172,6 +171,10 @@ module.exports = async (deployer, network, accounts) => { multiSigAddress = accounts[0]; defaultMaintainer = accounts[0]; } else return; + + logger.log("===================================================="); + logger.log("network type: " + network); + logger.log("Deploy time: " + new Date().toLocaleString()); if (deploySwitch.ROUTER_HELPER) { await deployer.deploy(DODOV1PmmHelper); @@ -181,10 +184,8 @@ module.exports = async (deployer, network, accounts) => { // logger.log("DODOV2RouteHelper Address: ", DODOV2RouteHelperAddress); } + if (deploySwitch.ADAPTER) { - logger.log("===================================================="); - logger.log("network type: " + network); - logger.log("Deploy time: " + new Date().toLocaleString()); logger.log("Deploy type: V2 - Adapter"); await deployer.deploy(DODOV1Adapter, DODOSellHelperAddress) logger.log("DODOV1Adapter Address: ", DODOV1Adapter.address); @@ -195,12 +196,8 @@ module.exports = async (deployer, network, accounts) => { } if (deploySwitch.DEPLOY_V2) { - logger.log("===================================================="); - logger.log("network type: " + network); - logger.log("Deploy time: " + new Date().toLocaleString()); logger.log("Deploy type: V2"); if (DODOTokenAddress == "") return; - //Helper if (DODOSellHelperAddress == "") { await deployer.deploy(DODOSellHelper); diff --git a/truffle-config.js b/truffle-config.js index 5acf54f..e11ad49 100644 --- a/truffle-config.js +++ b/truffle-config.js @@ -38,7 +38,7 @@ module.exports = { * $ truffle test --network */ deploySwitch: { - DEPLOY_V1: true, + DEPLOY_V1: false, DEPLOY_V2: false, ADAPTER: false, MOCK_TOKEN: false, diff --git a/truffle-test.sh b/truffle-test.sh index 24e566e..b3c15f4 100644 --- a/truffle-test.sh +++ b/truffle-test.sh @@ -1,5 +1,5 @@ #!/bin/bash -# truffle compile --all +truffle compile --all if [ "$1"x = "proxy-dpp"x ] then