Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.
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

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions