Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

[docs] I think the replenish algorithm description is wrong #587

Open
pizzonia opened this issue Apr 26, 2022 · 0 comments
Open

[docs] I think the replenish algorithm description is wrong #587

pizzonia opened this issue Apr 26, 2022 · 0 comments

Comments

@pizzonia
Copy link

File: docs/01_key-concepts/05_stake.md

The current text says:

it multiplies the currently accumulated average by (number of blocks in the window - number of blocks since last update) / (number of blocks in the window)

I interpret the wording "accumulated average" as a "currently available resource" (following terminology of the cleos get account output). However, the computed number is clearly less than one and multiplying the available resource by that number
diminish it instead of replenish it! I suspect it is divided by that number even if I was not able to derive it from the code.
Thank you for your work,
Maurizio

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

No branches or pull requests

1 participant