Skip to content

Commit

Permalink
Merge pull request #105 from liquity/fix-deployment-script
Browse files Browse the repository at this point in the history
fix: epoch start was effectively zero in Sepolia deployment
  • Loading branch information
bingen authored Dec 19, 2024
2 parents 15470de + 45267f5 commit a28490a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions script/DeploySepolia.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -90,7 +88,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
Expand Down

0 comments on commit a28490a

Please sign in to comment.