feat(x/provider): per-consumer fees_per_block override#47
Open
giunatale wants to merge 9 commits into
Open
Conversation
tbruyelle
reviewed
May 26, 2026
Params.FeesPerBlock.Amount now becomes a floor for per-consumer overrides
tbruyelle
reviewed
May 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #34.
Currently
fees_per_blockis a single global value in the provider module'sParams, so every LAUNCHED consumer is charged the same per-block fee regardless of the cost it imposes on the validator set. Validating a resource-intensive chain is materially more expensive than validating a lower-traffic chain, and the protocol should let provider governance reflect that difference.This PR keeps
Params.FeesPerBlockas the default that every consumer pays, and layers an optional, gov-gated override on top of it. Each block, the fee charged to a given consumer is now:ConsumerFeesPerBlockOverridecollection;Params.FeesPerBlock.The override is a single
math.Intamount. Denom is not overridable — it remainsParams.FeesPerBlock.Denomfor every consumer. Eventually we'll also want to changeParams.FeesPerBlockso that denom remains constant and cannot be changed after initialization with a param update, but any modification to that would require minor work on the code of this PR and is left for the followup that makes that change.