Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Separate WeightToFee calculation for Kusama and Polkadot #854

Merged
merged 3 commits into from
Feb 19, 2020
Merged

Separate WeightToFee calculation for Kusama and Polkadot #854

merged 3 commits into from
Feb 19, 2020

Conversation

shawntabrizi
Copy link
Member

Closes #847

The WeightToFee calculation for Kusama and Polkadot was the same, however the underlying currency distribution was different between the two networks.

This lead to a miscalculation of the WeightToFee converter for the networks.

This moves the WeightToFee implementation into the code specific to the runtime, and takes advantage of the defined CENTS constant to ensure that the intended WeightToFee conversion is happening.

@shawntabrizi shawntabrizi added the A0-please_review Pull request needs code review. label Feb 19, 2020
@rphmeier rphmeier merged commit 8c5642f into paritytech:master Feb 19, 2020
@shawntabrizi shawntabrizi deleted the shawntabrizi-fix-weight-to-fee branch February 20, 2020 00:11
General-Beck pushed a commit to General-Beck/polkadot that referenced this pull request Feb 20, 2020
…h#854)

* Separate `WeightToFee` calculation for Kusama and Polkadot

* Bump spec
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WeightToFee coefficient is wrong
3 participants