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

Return multiple of 32 for value of requestValidatorsExit #1966

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

iamacook
Copy link
Member

Summary

The value of a validator exit request is always a multiple of 32, the entry stake amount. This adjusts the relevant value to return a multiple of 32, depending on the number of validators requesting exit.

Note: this also fixes the CI issue regarding milliseconds.

Changes

  • Add value to NativeStakingValidatorsExitTransactionInfo.
  • Map value as multiple of 32 depending on validators.
  • Update tests accordingly.

@iamacook iamacook self-assigned this Sep 26, 2024
@iamacook iamacook requested a review from a team as a code owner September 26, 2024 14:48
@iamacook iamacook merged commit e480ae0 into main Sep 26, 2024
18 checks passed
@iamacook iamacook deleted the exit-request-value branch September 26, 2024 15:16
DenSmolonski pushed a commit to Zilliqa/safe-client-gateway that referenced this pull request Oct 24, 2024
…obal#1966)

Adjusts the relevant value to return a multiple of 32, depending on the number of validators requesting exit:

- Add `value` to `NativeStakingValidatorsExitTransactionInfo`.
- Map `value` as multiple of 32 depending on validators.
- Update tests accordingly.
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