Skip to content

Commit

Permalink
Set base delivery fee in DOT derived constant
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsso committed Mar 14, 2024
1 parent 7fc8f35 commit 7aa0e45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions runtimes/eden/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion runtimes/eden/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 7aa0e45

Please sign in to comment.