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

TEST-102: redemptionRate working! #56

Merged
merged 2 commits into from
Jun 27, 2022
Merged

TEST-102: redemptionRate working! #56

merged 2 commits into from
Jun 27, 2022

Conversation

riley-stride
Copy link
Contributor

Summary
Add working redemptionRate calculated at the beginning of the epoch (every redemptionRateInterval epochs) using depositRecords. RedemptionRate = (UB+SB+MA)/stSupply.

Test plan
Build locally, run 1.sh, then 2.sh, then 2.sh after about 10 seconds (to allow some rewards to accrue). Watch the redemptionRate increment as rewards are restaked and included in the new redemptionRate calc.

Copy link
Contributor

@asalzmann asalzmann left a comment

Choose a reason for hiding this comment

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

one minor comment otherwise LGTM

x/stakeibc/keeper/hooks.go Outdated Show resolved Hide resolved
@riley-stride riley-stride marked this pull request as ready for review June 27, 2022 04:51
@riley-stride riley-stride merged commit 7548950 into main Jun 27, 2022
riley-stride pushed a commit that referenced this pull request Sep 5, 2022
Add provenance blockchain registration
asalzmann pushed a commit that referenced this pull request Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants