From 957c158932af08acd24d63e6cf18338afc4ae5b9 Mon Sep 17 00:00:00 2001 From: Thrilok kumar Date: Tue, 6 Feb 2024 03:50:38 +0530 Subject: [PATCH] fix --- contracts/payloads/PayloadIGP6.sol | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/contracts/payloads/PayloadIGP6.sol b/contracts/payloads/PayloadIGP6.sol index 8d0294b..78a3759 100644 --- a/contracts/payloads/PayloadIGP6.sol +++ b/contracts/payloads/PayloadIGP6.sol @@ -27,8 +27,9 @@ contract PayloadIGP { ITimelock public constant TIMELOCK = ITimelock(0xC7Cb1dE2721BFC0E0DA1b9D526bCdC54eF1C0eFC); IInstaIndex public constant INSTAINDEX = IInstaIndex(0xC7Cb1dE2721BFC0E0DA1b9D526bCdC54eF1C0eFC); - uint256 public constant ONE_DAY_TIME = 1 days; - uint256 public constant TWO_DAY_TIME = 2 days; + uint256 public constant ONE_DAY_TIME_IN_SECONDS = 1 days; // 1 day in seconds. 86400s + uint256 public constant ONE_DAY_TIME_IN_BLOCKS = 7_200; // 1 day in blocks. 12s per block + uint256 public constant TWO_DAY_TIME_IN_BLOCKS = 14_400; // 2 day in blocks. 12s per block function execute() external { // Action 1: _acceptAdmin() function on governor contract @@ -41,7 +42,7 @@ contract PayloadIGP { INSTAINDEX.updateMaster(); // Action 4: setDelay() on new timelock contract with 1 day - TIMELOCK.setDelay(ONE_DAY_TIME); + TIMELOCK.setDelay(ONE_DAY_TIME_IN_SECONDS); // Action 5: setPendingAdmin() on new timelock contract TIMELOCK.setPendingAdmin(address(GOVERNOR)); @@ -50,13 +51,13 @@ contract PayloadIGP { GOVERNOR._acceptAdminOnTimelock(); // Action 7: _setVotingDelay() function on governor contract with 1 days - GOVERNOR._setVotingDelay(ONE_DAY_TIME); + GOVERNOR._setVotingDelay(ONE_DAY_TIME_IN_BLOCKS); // Action 8: _setVotingPeriod() function on governor contract with 2 days - GOVERNOR._setVotingPeriod(TWO_DAY_TIME); + GOVERNOR._setVotingPeriod(TWO_DAY_TIME_IN_BLOCKS); } function verifyProposal() external { - + } } \ No newline at end of file