From 911b7768276b7dd60f658ace3ec5227e5a9dcd70 Mon Sep 17 00:00:00 2001 From: joepetrowski Date: Thu, 28 Mar 2024 16:43:46 +0100 Subject: [PATCH 1/3] change asset creation deposit --- system-parachains/asset-hubs/asset-hub-kusama/src/lib.rs | 2 +- system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/system-parachains/asset-hubs/asset-hub-kusama/src/lib.rs b/system-parachains/asset-hubs/asset-hub-kusama/src/lib.rs index 8070b827bf..c1f3e70ce5 100644 --- a/system-parachains/asset-hubs/asset-hub-kusama/src/lib.rs +++ b/system-parachains/asset-hubs/asset-hub-kusama/src/lib.rs @@ -245,7 +245,7 @@ impl pallet_transaction_payment::Config for Runtime { } parameter_types! { - pub const AssetDeposit: Balance = UNITS / 10; // 1 / 10 UNITS deposit to create asset + pub const AssetDeposit: Balance = system_para_deposit(1, 190); pub const AssetAccountDeposit: Balance = system_para_deposit(1, 16); pub const AssetsStringLimit: u32 = 50; /// Key = 32 bytes, Value = 36 bytes (32+1+1+1+1) diff --git a/system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs b/system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs index 9b4ef06108..f894fbdf16 100644 --- a/system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs +++ b/system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs @@ -265,7 +265,7 @@ impl pallet_transaction_payment::Config for Runtime { } parameter_types! { - pub const AssetDeposit: Balance = 10 * UNITS; // 10 UNITS deposit to create fungible asset class + pub const AssetDeposit: Balance = system_para_deposit(1, 190); pub const AssetAccountDeposit: Balance = system_para_deposit(1, 16); pub const AssetsStringLimit: u32 = 50; /// Key = 32 bytes, Value = 36 bytes (32+1+1+1+1) From 1b5ff7a8bdc030e30bffb9d2a3e83e9614a497dc Mon Sep 17 00:00:00 2001 From: joepetrowski Date: Thu, 28 Mar 2024 16:46:18 +0100 Subject: [PATCH 2/3] changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c9235f87b0..3cf375f36f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,6 +38,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Prepared system parachain runtimes for async backing enabling ([polkadot-fellows/runtimes#228](https://github.com/polkadot-fellows/runtimes/pull/228)) - Update runtime weights [polkadot-fellows/runtimes#223](https://github.com/polkadot-fellows/runtimes/pull/223) - Treasury Spend detects relative locations of the native asset ([polkadot-fellows/runtimes#233](https://github.com/polkadot-fellows/runtimes/pull/233)) +- Updated Asset Hub asset class creation deposit to use `system_para_deposit()` ([polkadot-fellows/runtimes#259](https://github.com/polkadot-fellows/runtimes/pull/259)) ### Removed From 6723736f11332b238df4952f16d5a185e14b0cdc Mon Sep 17 00:00:00 2001 From: joepetrowski Date: Thu, 28 Mar 2024 17:09:28 +0100 Subject: [PATCH 3/3] update bridge deposit config --- .../asset-hubs/asset-hub-kusama/primitives/src/lib.rs | 4 ++-- .../asset-hubs/asset-hub-polkadot/primitives/src/lib.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/system-parachains/asset-hubs/asset-hub-kusama/primitives/src/lib.rs b/system-parachains/asset-hubs/asset-hub-kusama/primitives/src/lib.rs index 3112b297dc..1fd35fd27a 100644 --- a/system-parachains/asset-hubs/asset-hub-kusama/primitives/src/lib.rs +++ b/system-parachains/asset-hubs/asset-hub-kusama/primitives/src/lib.rs @@ -24,7 +24,7 @@ use xcm::prelude::*; pub use bp_xcm_bridge_hub_router::XcmBridgeHubRouterCall; -use system_parachains_constants::kusama::currency::UNITS; +use system_parachains_constants::kusama::currency::*; /// `AssetHubKusama` Runtime `Call` enum. /// @@ -52,7 +52,7 @@ frame_support::parameter_types! { pub UncongestedMessage: Xcm<()> = build_congestion_message(false).into(); /// Should match the `AssetDeposit` of the `ForeignAssets` pallet on Asset Hub. - pub const CreateForeignAssetDeposit: u128 = UNITS / 10; + pub const CreateForeignAssetDeposit: u128 = system_para_deposit(1, 190); } fn build_congestion_message(is_congested: bool) -> sp_std::vec::Vec> { diff --git a/system-parachains/asset-hubs/asset-hub-polkadot/primitives/src/lib.rs b/system-parachains/asset-hubs/asset-hub-polkadot/primitives/src/lib.rs index 1573499291..7d2a7f1e15 100644 --- a/system-parachains/asset-hubs/asset-hub-polkadot/primitives/src/lib.rs +++ b/system-parachains/asset-hubs/asset-hub-polkadot/primitives/src/lib.rs @@ -24,7 +24,7 @@ use xcm::prelude::*; pub use bp_xcm_bridge_hub_router::XcmBridgeHubRouterCall; -use system_parachains_constants::polkadot::currency::UNITS; +use system_parachains_constants::polkadot::currency::*; /// `AssetHubPolkadot` Runtime `Call` enum. /// @@ -52,7 +52,7 @@ frame_support::parameter_types! { pub UncongestedMessage: Xcm<()> = build_congestion_message(false).into(); /// Should match the `AssetDeposit` of the `ForeignAssets` pallet on Asset Hub. - pub const CreateForeignAssetDeposit: u128 = 10 * UNITS; + pub const CreateForeignAssetDeposit: u128 = system_para_deposit(1, 190); } fn build_congestion_message(is_congested: bool) -> sp_std::vec::Vec> {