From 7aa0e458c45484915deab913bcdb10c52045a2ce Mon Sep 17 00:00:00 2001 From: Fredrik Simonsson Date: Thu, 14 Mar 2024 15:06:23 +0900 Subject: [PATCH] Set base delivery fee in DOT derived constant --- runtimes/eden/src/constants.rs | 1 + runtimes/eden/src/xcm_config.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/runtimes/eden/src/constants.rs b/runtimes/eden/src/constants.rs index 423aed36749..87ca8699aa0 100644 --- a/runtimes/eden/src/constants.rs +++ b/runtimes/eden/src/constants.rs @@ -38,6 +38,7 @@ pub const NANO_NODL: Balance = MICRO_NODL / 1_000; pub const EXISTENTIAL_DEPOSIT: Balance = 100 * NANO_NODL; pub const POLKADOT_EXISTENTIAL_DEPOSIT: Balance = 10_000_000_000; +pub const POLKADOT_EXISTENTIAL_CENT: Balance = 1_000_000_000; pub const fn deposit(items: u32, bytes: u32) -> Balance { items as Balance * 1_500 * MICRO_NODL + (bytes as Balance) * 600 * MICRO_NODL diff --git a/runtimes/eden/src/xcm_config.rs b/runtimes/eden/src/xcm_config.rs index 3c55a708282..124b6401add 100644 --- a/runtimes/eden/src/xcm_config.rs +++ b/runtimes/eden/src/xcm_config.rs @@ -194,7 +194,7 @@ parameter_types! { /// The asset ID for the asset that we use to pay for message delivery fees. pub FeeAssetId: AssetId = Concrete(NodlLocation::get()); /// The base fee for the message delivery fees. - pub const BaseDeliveryFee: u128 = crate::constants::NODL.saturating_mul(3); + pub const BaseDeliveryFee: u128 = crate::constants::POLKADOT_EXISTENTIAL_CENT.saturating_mul(3); } pub type PriceForSiblingParachainDelivery =