diff --git a/src/Voter.sol b/src/Voter.sol index 4ef767c..d9ca785 100644 --- a/src/Voter.sol +++ b/src/Voter.sol @@ -218,6 +218,10 @@ contract Voter is IVoter { ); require(block.timestamp < IVotingEscrow(veALCX).lockEnd(_tokenId), "cannot vote with expired token"); + if (block.timestamp >= IMinter(minter).activePeriod() + 2 weeks) { + IMinter(minter).updatePeriod(); + } + _vote(_tokenId, _poolVote, _weights, _boost); }