diff --git a/runtime/shibuya/src/lib.rs b/runtime/shibuya/src/lib.rs index 60af1359c3..bf9e7d8c30 100644 --- a/runtime/shibuya/src/lib.rs +++ b/runtime/shibuya/src/lib.rs @@ -7,7 +7,7 @@ use codec::{Decode, Encode}; use frame_support::{ construct_runtime, parameter_types, - traits::{Contains, Currency, FindAuthor, Imbalance, OnUnbalanced}, + traits::{Contains, Currency, FindAuthor, Imbalance, OnUnbalanced, SameOrOther}, weights::{ constants::{BlockExecutionWeight, ExtrinsicBaseWeight, WEIGHT_PER_SECOND}, DispatchClass, Weight, WeightToFeeCoefficient, WeightToFeeCoefficients, @@ -85,7 +85,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("shibuya"), impl_name: create_runtime_str!("shibuya"), authoring_version: 1, - spec_version: 19, + spec_version: 20, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1, @@ -528,8 +528,13 @@ impl OnUnbalanced for DealWithFees { if let Some(tips) = fees_then_tips.next() { tips.merge_into(&mut fees); } + let (to_burn, collators) = fees.ration(20, 80); + + // burn part of fees + let _ = Balances::burn(to_burn.peek()); + // pay fees to collators - >::on_unbalanced(fees); + >::on_unbalanced(collators); } } } diff --git a/runtime/shiden/src/lib.rs b/runtime/shiden/src/lib.rs index 859e1cebd7..001e04c786 100644 --- a/runtime/shiden/src/lib.rs +++ b/runtime/shiden/src/lib.rs @@ -84,7 +84,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("shiden"), impl_name: create_runtime_str!("shiden"), authoring_version: 1, - spec_version: 29, + spec_version: 30, impl_version: 0, apis: RUNTIME_API_VERSIONS, transaction_version: 1, @@ -530,11 +530,7 @@ impl OnUnbalanced for DealWithFees { let (to_burn, collators) = fees.ration(20, 80); // burn part of fees - let burned = Balances::burn(to_burn.peek()); - assert!( - matches!(burned.offset(to_burn), SameOrOther::None), - "fees burn check" - ); + let _ = Balances::burn(to_burn.peek()); // pay fees to collators >::on_unbalanced(collators);