Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(freezeV2): optimize Stake 2.0 APIs #5260

Merged
merged 1 commit into from Jun 7, 2023

Conversation

lxcmyf
Copy link
Contributor

@lxcmyf lxcmyf commented Jun 5, 2023

What does this PR do?
Optimize cancelallunfreezev2 and delegateresource code logic
Why are these changes required?

This PR has been tested by:

  • Unit Tests
  • Manual Testing

Follow up

Extra details

@lxcmyf lxcmyf force-pushed the release_v4.7.2 branch 16 times, most recently from 6619d31 to 4bd45d4 Compare June 6, 2023 10:11
}
break;
}
case ALLOW_OPTIMIZE_LOCK_DELEGATE_RESOURCE: {
case MAX_NUMBER_OF_LOCK_PERIOD: {
Copy link
Contributor

Choose a reason for hiding this comment

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

MAX_LOCK_PERIOD_FOR_DELEGATION maybe better?

@lxcmyf lxcmyf force-pushed the release_v4.7.2 branch 8 times, most recently from 65bb5ef to 5be8621 Compare June 7, 2023 05:32

@Getter
@Setter
public long allowOptimizeLockDelegateResource;
public long maxDelegateLockPeriod;

Copy link
Contributor

Choose a reason for hiding this comment

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

What is the use of allowCancelAllUnfreezeV2 and maxDelegateLockPeriod.

@lxcmyf lxcmyf changed the title feat(freezeV2): optimize some code logic feat(freezeV2): optimize Stake 2.0 APIs Jun 7, 2023
Signed-off-by: liuxincheng <lxcmyf@qq.com>
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.

None yet

4 participants