update timelock
This commit is contained in:
@@ -20,7 +20,8 @@ module.exports = async (deployer, network, accounts) => {
|
||||
DODOSellHelperAddress = "0xbdEae617F2616b45DCB69B287D52940a76035Fe3";
|
||||
WETHAddress = "0x5eca15b12d959dfcf9c71c59f8b467eb8c6efd0b";
|
||||
DODOSwapCalcHelperAddress = "";
|
||||
DODOApproveAddress = "0x0C4a80B2e234448E5f6fD86e7eFA733d985004c8";
|
||||
// DODOApproveAddress = "0x0C4a80B2e234448E5f6fD86e7eFA733d985004c8";
|
||||
DODOApproveAddress = "";
|
||||
chiAddress = "0x0000000000004946c0e9f43f4dee607b0ef1fa1c";
|
||||
ownerAddress = accounts[0];
|
||||
} else if (network == "live") {
|
||||
@@ -52,9 +53,6 @@ module.exports = async (deployer, network, accounts) => {
|
||||
await deployer.deploy(DODOApprove);
|
||||
DODOApproveAddress = DODOApprove.address;
|
||||
logger.log("DODOApprove Address: ", DODOApproveAddress);
|
||||
const DODOApproveInstance = await DODOApprove.at(DODOApproveAddress);
|
||||
var tx = await DODOApproveInstance.initOwner(ownerAddress);
|
||||
logger.log("Set DODOApprove Owner tx: ", tx.tx);
|
||||
}
|
||||
if (DODOSellHelperAddress == "") {
|
||||
await deployer.deploy(DODOSellHelper);
|
||||
@@ -77,20 +75,15 @@ module.exports = async (deployer, network, accounts) => {
|
||||
tx = await DODOProxyV1Instance.initOwner(ownerAddress);
|
||||
logger.log("Set DODOProxyV1 Owner tx: ", tx.tx);
|
||||
|
||||
const DODOApproveInstance = await DODOApprove.at(DODOApproveAddress);
|
||||
tx = await DODOApproveInstance.init(ownerAddress, DODOProxyV1.address);
|
||||
logger.log("Set DODOApprove Owner And Init Set Proxy tx: ", tx.tx);
|
||||
|
||||
if (network == "kovan") {
|
||||
const DODOApproveInstance = await DODOApprove.at(DODOApproveAddress);
|
||||
tx = await DODOApproveInstance.unlockSetProxy(DODOProxyV1.address);
|
||||
logger.log("DODOApprove unlockSetProxy tx: ", tx.tx);
|
||||
tx = await DODOApproveInstance.setDODOProxy();
|
||||
logger.log("DODOApprove triggerSetProxy tx: ", tx.tx);
|
||||
|
||||
// var tx1 = await DODOProxyV1Instance.addWhiteList("0x111111125434b319222cdbf8c261674adb56f3ae");
|
||||
// var tx2 = await DODOProxyV1Instance.addWhiteList("0xf740b67da229f2f10bcbd38a7979992fcc71b8eb");
|
||||
// var tx3 = await DODOProxyV1Instance.addWhiteList("0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D");
|
||||
// logger.log("AddWhiteList tx1: ", tx1.tx);
|
||||
// logger.log("AddWhiteList tx2: ", tx2.tx);
|
||||
// logger.log("AddWhiteList tx3: ", tx3.tx);
|
||||
}
|
||||
// var tx1 = await DODOProxyV1Instance.addWhiteList("0x111111125434b319222cdbf8c261674adb56f3ae");
|
||||
// var tx2 = await DODOProxyV1Instance.addWhiteList("0xf740b67da229f2f10bcbd38a7979992fcc71b8eb");
|
||||
// var tx3 = await DODOProxyV1Instance.addWhiteList("0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D");
|
||||
// logger.log("AddWhiteList tx1: ", tx1.tx);
|
||||
// logger.log("AddWhiteList tx2: ", tx2.tx);
|
||||
// logger.log("AddWhiteList tx3: ", tx3.tx);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user