-
Notifications
You must be signed in to change notification settings - Fork 122
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!: enable chains to allowlist reward denoms permissionlessly #2309
feat!: enable chains to allowlist reward denoms permissionlessly #2309
Conversation
5738abe
to
12dccf3
Compare
12dccf3
to
b4489d8
Compare
s.providerChain.NextBlock() | ||
} | ||
|
||
// Allowlist the consumer reward denom. This would be done by a governance proposal in prod. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this test passes if we were to remove the following line and do:
providerKeeper.SetAllowlistedRewardDenom(s.providerCtx(), s.getFirstBundle().ConsumerId, rewardsIBCdenom)
instead.
9e9511d
to
06ea1f7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Great work!
Description
Closes: #2298
Note that this PR stores the
ConsumerRewardsAllocation
per denom, although we could only store the amount. This was done to simplify the changes needed to make this work (under the current time constraints). We can revisit later on.Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if the change is state-machine breakingCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
the type prefix if the change is state-machine breaking