add audit report

This commit is contained in:
owen05
2021-03-16 13:59:43 +08:00
parent abe9919a01
commit bb2ce2e496
7 changed files with 146 additions and 30 deletions

View File

@@ -15,6 +15,7 @@ const WETH9 = artifacts.require("WETH9");
const DODOToken = artifacts.require("DODOToken");
const UpCrowdPoolingFactory = artifacts.require("UpCrowdPoolingFactory");
const CpFactory = artifacts.require("CrowdPoolingFactory");
const MultiCall = artifacts.require("Multicall");
module.exports = async (deployer, network, accounts) => {
let CONFIG = GetConfig(network, accounts)
@@ -58,6 +59,12 @@ module.exports = async (deployer, network, accounts) => {
logger.log("Init UpCpFactory Tx:", tx.tx);
}
if (deploySwitch.MultiCall) {
await deployer.deploy(MultiCall);
MultiCallAddress = MultiCall.address;
logger.log("MultiCallAddress: ", MultiCallAddress);
}
if (deploySwitch.CPFactory) {
logger.log("====================================================");
logger.log("network type: " + network);
@@ -78,7 +85,7 @@ module.exports = async (deployer, network, accounts) => {
logger.log("Init CpFactory Tx:", tx.tx);
}
if(deploySwitch.DVM) {
if (deploySwitch.DVM) {
await deployer.deploy(DvmTemplate);
DvmTemplateAddress = DvmTemplate.address;
logger.log("DvmTemplateAddress: ", DvmTemplateAddress);