Skip to content

Commit

Permalink
fix(runtime-kreivo): missing parts after conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
pandres95 committed Mar 9, 2024
1 parent 25199a1 commit 41b3b7c
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion runtime/kreivo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ use frame_support::{
dispatch::DispatchClass,
ensure,
genesis_builder_helper::{build_config, create_default_config},
parameter_types,
ord_parameter_types, parameter_types,
traits::{
fungible::HoldConsideration,
fungibles,
Expand Down Expand Up @@ -719,6 +719,27 @@ pub const SYSTEM_FEE: u8 = 1;
pub const SYSTEM_FEE_PERCENTAGE: Percent = Percent::from_percent(SYSTEM_FEE);
pub const INCENTIVE_PERCENTAGE: u8 = 10;

parameter_types! {
/// The asset ID for the asset that we use to pay for message delivery fees.
pub FeeAssetId: cumulus_primitives_core::AssetId = Concrete(xcm_config::RelayLocation::get());
/// The base fee for the message delivery fees.
pub const ToSiblingBaseDeliveryFee: u128 = CENTS.saturating_mul(3);
pub const ToParentBaseDeliveryFee: u128 = CENTS.saturating_mul(3);
}

pub type PriceForSiblingParachainDelivery = polkadot_runtime_common::xcm_sender::ExponentialPrice<
FeeAssetId,
ToSiblingBaseDeliveryFee,
TransactionByteFee,
XcmpQueue,
>;
pub type PriceForParentDelivery = polkadot_runtime_common::xcm_sender::ExponentialPrice<
FeeAssetId,
ToParentBaseDeliveryFee,
TransactionByteFee,
ParachainSystem,
>;

#[cfg(feature = "runtime-benchmarks")]
pub struct AssetRegistryBenchmarkHelper;
#[cfg(feature = "runtime-benchmarks")]
Expand Down

0 comments on commit 41b3b7c

Please sign in to comment.