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

Staking reward not paid under certain conditions #4269

Closed
tinker-michaelj opened this issue Nov 10, 2022 · 0 comments · Fixed by #4282
Closed

Staking reward not paid under certain conditions #4269

tinker-michaelj opened this issue Nov 10, 2022 · 0 comments · Fixed by #4282
Assignees

Comments

@tinker-michaelj
Copy link
Collaborator

tinker-michaelj commented Nov 10, 2022

Description

The following timeline was observed:

  • User created 0.0.A with zero balance, but staked to a node.
  • Some days later, in UTC day n, user transferred X > 0 whole hbars to 0.0.A.
  • In UTC day n + 1, user transferred all X hbar out of 0.0.A.
  • On UTC day n + 2, user tried to collect pending rewards for day n + 1; but no rewards were paid.

But account 0.0.A's state in day n + 2 should have been:

  • stakeAtStartOfLastRewardedPeriod=X
  • stakePeriodStart=n

...so it should have been paid rewards for X whole hbar for one period (day n + 1).

Steps to reproduce

Replicate the above timeline.

Additional context

No response

Hedera network

mainnet

Version

v0.30.5

Operating system

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant