From 219382278d7e28a7b9b52cefe311baa81233d159 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Fingen?= Date: Wed, 18 Dec 2024 10:54:58 +0000 Subject: [PATCH 1/2] fix: epoch start was effectively zero in Sepolia deployment --- script/DeploySepolia.s.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/DeploySepolia.s.sol b/script/DeploySepolia.s.sol index e86ce96..1852722 100644 --- a/script/DeploySepolia.s.sol +++ b/script/DeploySepolia.s.sol @@ -90,7 +90,7 @@ contract DeploySepoliaScript is Script, Deployers, MockStakingV1Deployer { votingThresholdFactor: VOTING_THRESHOLD_FACTOR, minClaim: MIN_CLAIM, minAccrual: MIN_ACCRUAL, - epochStart: uint32(block.timestamp - VESTING_EPOCH_START), + epochStart: block.timestamp - EPOCH_DURATION, /// @audit Ensures that `initialInitiatives` can be voted on epochDuration: EPOCH_DURATION, epochVotingCutoff: EPOCH_VOTING_CUTOFF From 45267f593d18d1cc59ccd51bb3321312eac42d28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=9Fingen?= Date: Thu, 19 Dec 2024 10:18:39 +0000 Subject: [PATCH 2/2] fix: Remove unused constants from deployment script --- script/DeploySepolia.s.sol | 2 -- 1 file changed, 2 deletions(-) diff --git a/script/DeploySepolia.s.sol b/script/DeploySepolia.s.sol index 1852722..cb20465 100644 --- a/script/DeploySepolia.s.sol +++ b/script/DeploySepolia.s.sol @@ -43,8 +43,6 @@ contract DeploySepoliaScript is Script, Deployers, MockStakingV1Deployer { uint32 private constant EPOCH_VOTING_CUTOFF = 518400; // UniV4Donations Constants - uint256 private immutable VESTING_EPOCH_START = block.timestamp; - uint256 private constant VESTING_EPOCH_DURATION = 7 days; uint24 private constant FEE = 400; int24 constant MAX_TICK_SPACING = 32767;