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

feat(x/mint): remove inflation_rewards_ratio param #305

Merged
merged 7 commits into from
Mar 6, 2023

Conversation

spoo-bar
Copy link
Contributor

@spoo-bar spoo-bar commented Mar 3, 2023

  • Remove inflation_rewards_ratio param from x/rewards as now x/mint params.inflationrecipients will store this info
  • Remove mintbankkeeper as that is not needed anymore
  • Test code fixes but tests still fail as the new x/mint minting hasnt been implemented yet

@spoo-bar spoo-bar requested a review from fdymylja March 3, 2023 15:00
@spoo-bar spoo-bar changed the base branch from main to feat/econ-v2 March 3, 2023 15:01
@spoo-bar spoo-bar marked this pull request as ready for review March 3, 2023 15:03
@spoo-bar spoo-bar mentioned this pull request Mar 6, 2023
x/mint/types/params.go Outdated Show resolved Hide resolved
// Track inflation rewards
k.rewardsKeeper.TrackInflationRewards(ctx, dappRewards[0])
// Update the minimum consensus fee
k.rewardsKeeper.UpdateMinConsensusFee(ctx, dappRewards[0])
Copy link
Contributor

Choose a reason for hiding this comment

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

Now the MinConsensusFee is not tracked. We need to find a way to track it again.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup. Mentioned this in the BeginBlocker issue. #287 (comment) so that when actual minting is implemented, it is handled.

}

// Track inflation rewards
k.rewardsKeeper.TrackInflationRewards(ctx, dappRewards[0])
Copy link
Contributor

Choose a reason for hiding this comment

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

We need to track the inflation rewards too

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Implantation tracked in #287 (comment) issue

@spoo-bar spoo-bar requested a review from fdymylja March 6, 2023 13:07
@spoo-bar spoo-bar merged commit 0075d1d into feat/econ-v2 Mar 6, 2023
@spoo-bar spoo-bar deleted the spoorthi/remove-rewards-inflation-param branch March 6, 2023 17:27
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