Skip to content

Updating vesting registry and creating cron job to extend staking#428

Merged
smbsp merged 9 commits intoupgradable-vestingfrom
updating-vesting-registry
Apr 26, 2022
Merged

Updating vesting registry and creating cron job to extend staking#428
smbsp merged 9 commits intoupgradable-vestingfrom
updating-vesting-registry

Conversation

@smbsp
Copy link
Copy Markdown
Contributor

@smbsp smbsp commented Mar 30, 2022

  1. Adds all the deployed four year vestings to the registry with vesting type = 1 and vesting creation type = 4. Front end can use these values to display the four year vestings. These vestings won't unlock for the first year(and shall be extended for 3 years).
  2. Added a cron job to extend staking(by 3 years) for the tokens unlocked in the first year - for all four year vestings.

@smbsp smbsp changed the base branch from development to upgradable-vesting March 30, 2022 09:38
@smbsp smbsp self-assigned this Mar 30, 2022
Comment on lines +109 to +111
uint256 vestingCreationType = 4;
uint256 cliff = 4 weeks;
uint256 duration = 156 weeks;
Copy link
Copy Markdown
Contributor

@tjcloa tjcloa Apr 21, 2022

Choose a reason for hiding this comment

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

VR4 - vars can be constants

uint256 cliff = 4 weeks;
uint256 duration = 156 weeks;
for (uint256 i = 0; i < _tokenOwners.length; i++) {
require(_tokenOwners[i] != address(0), "token owner cannot be 0 address");
Copy link
Copy Markdown
Contributor

@tjcloa tjcloa Apr 21, 2022

Choose a reason for hiding this comment

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

CD19 - require enumeration throughout all the code

Copy link
Copy Markdown
Contributor

@tjcloa tjcloa left a comment

Choose a reason for hiding this comment

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

lgtm

@smbsp smbsp requested a review from JoeStorm99 April 22, 2022 13:37
@smbsp smbsp merged commit e261cc3 into upgradable-vesting Apr 26, 2022
@smbsp smbsp deleted the updating-vesting-registry branch April 26, 2022 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants