Skip to content

Change CarrotVesting duration - #150

Merged
eladiosch merged 2 commits into
masterfrom
feat/carrot-vesting-duration
Aug 4, 2026
Merged

Change CarrotVesting duration#150
eladiosch merged 2 commits into
masterfrom
feat/carrot-vesting-duration

Conversation

@eladiosch

Copy link
Copy Markdown
Contributor

This PR reduces the Carrot Vesting duration from 180 to 30 days for positions created after the upgrade

Comment on lines 131 to 142
function reinitializeVesting(uint32 newDuration, uint32 newSteps) external onlyOwner reinitializer(3) {
require(newDuration > 0, InvalidDuration());
require(newSteps > 0, InvalidSteps());
require(newDuration >= newSteps, InvalidDuration());
VestingStorage storage $ = _getCarrotVestingStorage();
require(!$.isDismantled, AlreadyDismantled());

$.newDuration = newDuration;
$.newSteps = newSteps;
$.upgradeTimestamp = uint48(block.timestamp);
emit VestingReinitialized({ duration: newDuration, steps: newSteps });
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can remove if want.

duration = $.duration;
steps = $.steps;
} else {
} else if ($.upgradeTimestamp2 == 0 || vesting.depositedTimestamp < $.upgradeTimestamp2) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<= but not important tbh

@eladiosch
eladiosch merged commit 5ebdeaa into master Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants