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

Allow rewards percentage to be 0 #45

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

mzabaluev
Copy link
Collaborator

Description

Follow-up to the quick fix of #44.
Instead of fixing up the reward rate in computation, let the GenesisConfig field rewards_apy_percentage to be set to 0.

Also test that the Movement configuration – practically endless epoch and zero reward rate – works for genesis without division by zero or a validation failure.

Relax validation on GenesisConfig to allow the rewards_apy_percentage
value to be 0. This will be used in Movement as the source of truth
instead of the conditionally hacked rewards rate computation.
@mzabaluev mzabaluev added the enhancement New feature or request label Jul 11, 2024
@mzabaluev mzabaluev requested a review from l-monninger July 11, 2024 17:29
Copy link
Collaborator

@l-monninger l-monninger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants