From d49d2d07480dee8d0e94677df8f516a4330b2fcf Mon Sep 17 00:00:00 2001 From: ssubik Date: Wed, 15 Feb 2023 19:27:20 +0545 Subject: [PATCH] changed setup finalizing --- scripts/migrations/deployment/5_deploy_governor.js | 6 +++--- scripts/migrations/setup/1_init_timelock_controller.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/migrations/deployment/5_deploy_governor.js b/scripts/migrations/deployment/5_deploy_governor.js index 76c39d7..fa83d94 100644 --- a/scripts/migrations/deployment/5_deploy_governor.js +++ b/scripts/migrations/deployment/5_deploy_governor.js @@ -9,13 +9,13 @@ const MultiSigWallet_address = MultiSigWallet.address; const initialVotingDelay = 86400; //Approx. 2 days with one block every 2s const votingPeriod = 216000; // approx. 5 days with one block every 2s -- (5 * 24 * 60 * 60) / 2, const initialProposalThreshold = 1000; -// time delay is in timestamp not block. +// below are in timestamp and not blocks // Each user cannot make proposals if they have recently made a proposal, for a given time delay. // This given delay is proposalTimeDelay, the time between multiple proposals for each user -const proposalTimeDelay = 86400; +const proposalTimeDelay = 86400; // 1 day // After the proposal is created, till what time period the proposal can be executed. // After the lifetime exceeds, the proposal can’t be executed. -const proposalLifetime = 14 * 86400; +const proposalLifetime = 60 * 86400; // 2months module.exports = async function(deployer) { diff --git a/scripts/migrations/setup/1_init_timelock_controller.js b/scripts/migrations/setup/1_init_timelock_controller.js index 9d1ec5e..85b78e2 100644 --- a/scripts/migrations/setup/1_init_timelock_controller.js +++ b/scripts/migrations/setup/1_init_timelock_controller.js @@ -8,7 +8,7 @@ const ITimelockController = artifacts.require('./dao/governance/interfaces/ITime // A Scheduled operation is an operation that becomes valid after a given delay. // Once the delay time has passed, the operation can be performed. Each schedules delay must be at least minDelay. // minDelay is set in the initialize function call, and can be updated using function updateDelay. -const minDelay = 86400 +const minDelay = 7 * 86400 // 14 days, with 2s blocks const proposers = [MainTokenGovernor.address]; const executors = [MainTokenGovernor.address];