Skip to content

Commit 9effd4f

Browse files
authored
adjust weight to fee (#1761)
Signed-off-by: Cheng JIANG <[email protected]>
1 parent 3458457 commit 9effd4f

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

runtime/heiko/src/constants.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ pub mod fee {
7171
impl WeightToFeePolynomial for WeightToFee {
7272
type Balance = Balance;
7373
fn polynomial() -> WeightToFeeCoefficients<Self::Balance> {
74-
// in heiko, extrinsic base weight (smallest non-zero weight) is mapped to 2 CENTS
75-
let p = super::currency::CENTS * 2;
74+
// in heiko, extrinsic base weight (smallest non-zero weight) is mapped to 5 CENTS
75+
let p = super::currency::CENTS * 5;
7676
let q = Balance::from(ExtrinsicBaseWeight::get());
7777
smallvec![WeightToFeeCoefficient {
7878
degree: 1,

runtime/kerria/src/constants.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ pub mod fee {
7171
impl WeightToFeePolynomial for WeightToFee {
7272
type Balance = Balance;
7373
fn polynomial() -> WeightToFeeCoefficients<Self::Balance> {
74-
// in kerria, extrinsic base weight (smallest non-zero weight) is mapped to 2 CENTS
75-
let p = super::currency::CENTS * 2;
74+
// in kerria, extrinsic base weight (smallest non-zero weight) is mapped to 5 CENTS
75+
let p = super::currency::CENTS * 5;
7676
let q = Balance::from(ExtrinsicBaseWeight::get());
7777
smallvec![WeightToFeeCoefficient {
7878
degree: 1,

runtime/parallel/src/constants.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ pub mod fee {
7171
impl WeightToFeePolynomial for WeightToFee {
7272
type Balance = Balance;
7373
fn polynomial() -> WeightToFeeCoefficients<Self::Balance> {
74-
// in parallel, extrinsic base weight (smallest non-zero weight) is mapped to 2 CENTS
75-
let p = super::currency::CENTS * 2;
74+
// in parallel, extrinsic base weight (smallest non-zero weight) is mapped to 5 CENTS
75+
let p = super::currency::CENTS * 5;
7676
let q = Balance::from(ExtrinsicBaseWeight::get());
7777
smallvec![WeightToFeeCoefficient {
7878
degree: 1,

runtime/vanilla/src/constants.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ pub mod fee {
7171
impl WeightToFeePolynomial for WeightToFee {
7272
type Balance = Balance;
7373
fn polynomial() -> WeightToFeeCoefficients<Self::Balance> {
74-
// in vanilla, extrinsic base weight (smallest non-zero weight) is mapped to 2 CENTS
75-
let p = super::currency::CENTS * 2;
74+
// in vanilla, extrinsic base weight (smallest non-zero weight) is mapped to 5 CENTS
75+
let p = super::currency::CENTS * 5;
7676
let q = Balance::from(ExtrinsicBaseWeight::get());
7777
smallvec![WeightToFeeCoefficient {
7878
degree: 1,

0 commit comments

Comments
 (0)