mirror of
https://github.com/Instadapp/dsa-governance.git
synced 2024-07-29 22:27:52 +00:00
fix
This commit is contained in:
parent
69588ffde2
commit
957c158932
|
@ -27,8 +27,9 @@ contract PayloadIGP {
|
||||||
ITimelock public constant TIMELOCK = ITimelock(0xC7Cb1dE2721BFC0E0DA1b9D526bCdC54eF1C0eFC);
|
ITimelock public constant TIMELOCK = ITimelock(0xC7Cb1dE2721BFC0E0DA1b9D526bCdC54eF1C0eFC);
|
||||||
IInstaIndex public constant INSTAINDEX = IInstaIndex(0xC7Cb1dE2721BFC0E0DA1b9D526bCdC54eF1C0eFC);
|
IInstaIndex public constant INSTAINDEX = IInstaIndex(0xC7Cb1dE2721BFC0E0DA1b9D526bCdC54eF1C0eFC);
|
||||||
|
|
||||||
uint256 public constant ONE_DAY_TIME = 1 days;
|
uint256 public constant ONE_DAY_TIME_IN_SECONDS = 1 days; // 1 day in seconds. 86400s
|
||||||
uint256 public constant TWO_DAY_TIME = 2 days;
|
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 {
|
function execute() external {
|
||||||
// Action 1: _acceptAdmin() function on governor contract
|
// Action 1: _acceptAdmin() function on governor contract
|
||||||
|
@ -41,7 +42,7 @@ contract PayloadIGP {
|
||||||
INSTAINDEX.updateMaster();
|
INSTAINDEX.updateMaster();
|
||||||
|
|
||||||
// Action 4: setDelay() on new timelock contract with 1 day
|
// 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
|
// Action 5: setPendingAdmin() on new timelock contract
|
||||||
TIMELOCK.setPendingAdmin(address(GOVERNOR));
|
TIMELOCK.setPendingAdmin(address(GOVERNOR));
|
||||||
|
@ -50,10 +51,10 @@ contract PayloadIGP {
|
||||||
GOVERNOR._acceptAdminOnTimelock();
|
GOVERNOR._acceptAdminOnTimelock();
|
||||||
|
|
||||||
// Action 7: _setVotingDelay() function on governor contract with 1 days
|
// 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
|
// 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 {
|
function verifyProposal() external {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user