EOSIO/eosio.contracts

[docs] I think the replenish algorithm description is wrong

pizzonia opened this issue · 0 comments

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