From 7000d241a25a18c97d13daab54ccbacd93af3e6e Mon Sep 17 00:00:00 2001 From: joe petrowski <25483142+joepetrowski@users.noreply.github.com> Date: Thu, 4 Jan 2024 13:13:28 +0100 Subject: [PATCH] Lower System Parachain Existential Deposits (#131) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As referenced in a few discussions (e.g. [forum](https://forum.polkadot.network/t/lowering-or-removing-existential-deposit-in-the-long-run/2167/10)), the Asset Hub Existential Deposit was set at genesis to 1/10th of the Relay Chain's. The goal however was always to lower it as the Relay Chain became more efficient at executing parachains to reflect the lower resource consumption on parachains and provide stronger incentives to prefer parachains for user-applications over the Relay Chain. This PR lowers the system chain existential deposits by a factor of ten, to 1/100th of the Relay Chain's ED, or 0.01 DOT. For discussion/comment: Should all system paras have a lower ED, or just Asset Hub? On one hand, it is less confusing if they are all the same. On the other, we actually _don't_ necessarily want to encourage lots of accounts on a chain like Bridge Hub. For this PR, I've adjusted all of the system paras, but in separate commits. --------- Co-authored-by: Bastian Köcher --- .../asset-hubs/asset-hub-kusama/src/constants.rs | 4 ++-- .../asset-hubs/asset-hub-kusama/src/weights/mod.rs | 1 - .../asset-hubs/asset-hub-polkadot/src/constants.rs | 4 ++-- .../asset-hubs/asset-hub-polkadot/src/weights/mod.rs | 1 - .../bridge-hubs/bridge-hub-kusama/src/weights/mod.rs | 1 - .../bridge-hubs/bridge-hub-polkadot/src/weights/mod.rs | 1 - .../collectives/collectives-polkadot/src/weights/mod.rs | 1 - 7 files changed, 4 insertions(+), 9 deletions(-) diff --git a/system-parachains/asset-hubs/asset-hub-kusama/src/constants.rs b/system-parachains/asset-hubs/asset-hub-kusama/src/constants.rs index 7822698be6..a5c24f58de 100644 --- a/system-parachains/asset-hubs/asset-hub-kusama/src/constants.rs +++ b/system-parachains/asset-hubs/asset-hub-kusama/src/constants.rs @@ -17,8 +17,8 @@ pub mod currency { use kusama_runtime_constants as constants; use polkadot_core_primitives::Balance; - /// The existential deposit. Set to 1/10 of its parent Relay Chain. - pub const EXISTENTIAL_DEPOSIT: Balance = constants::currency::EXISTENTIAL_DEPOSIT / 10; + /// The existential deposit. Set to 1/100 of its parent Relay Chain. + pub const EXISTENTIAL_DEPOSIT: Balance = constants::currency::EXISTENTIAL_DEPOSIT / 100; pub const UNITS: Balance = constants::currency::UNITS; pub const CENTS: Balance = constants::currency::CENTS; diff --git a/system-parachains/asset-hubs/asset-hub-kusama/src/weights/mod.rs b/system-parachains/asset-hubs/asset-hub-kusama/src/weights/mod.rs index 281c013b33..9d92330275 100644 --- a/system-parachains/asset-hubs/asset-hub-kusama/src/weights/mod.rs +++ b/system-parachains/asset-hubs/asset-hub-kusama/src/weights/mod.rs @@ -39,5 +39,4 @@ pub mod xcm; pub use block_weights::constants::BlockExecutionWeight; pub use extrinsic_weights::constants::ExtrinsicBaseWeight; -pub use paritydb_weights::constants::ParityDbWeight; pub use rocksdb_weights::constants::RocksDbWeight; diff --git a/system-parachains/asset-hubs/asset-hub-polkadot/src/constants.rs b/system-parachains/asset-hubs/asset-hub-polkadot/src/constants.rs index dea920979f..03dd41319e 100644 --- a/system-parachains/asset-hubs/asset-hub-polkadot/src/constants.rs +++ b/system-parachains/asset-hubs/asset-hub-polkadot/src/constants.rs @@ -17,8 +17,8 @@ pub mod currency { use polkadot_core_primitives::Balance; use polkadot_runtime_constants as constants; - /// The existential deposit. Set to 1/10 of its parent Relay Chain. - pub const EXISTENTIAL_DEPOSIT: Balance = constants::currency::EXISTENTIAL_DEPOSIT / 10; + /// The existential deposit. Set to 1/100 of its parent Relay Chain. + pub const EXISTENTIAL_DEPOSIT: Balance = constants::currency::EXISTENTIAL_DEPOSIT / 100; pub const UNITS: Balance = constants::currency::UNITS; pub const DOLLARS: Balance = constants::currency::DOLLARS; diff --git a/system-parachains/asset-hubs/asset-hub-polkadot/src/weights/mod.rs b/system-parachains/asset-hubs/asset-hub-polkadot/src/weights/mod.rs index 3eb3b925e6..d3408c738d 100644 --- a/system-parachains/asset-hubs/asset-hub-polkadot/src/weights/mod.rs +++ b/system-parachains/asset-hubs/asset-hub-polkadot/src/weights/mod.rs @@ -36,5 +36,4 @@ pub mod xcm; pub use block_weights::constants::BlockExecutionWeight; pub use extrinsic_weights::constants::ExtrinsicBaseWeight; -pub use paritydb_weights::constants::ParityDbWeight; pub use rocksdb_weights::constants::RocksDbWeight; diff --git a/system-parachains/bridge-hubs/bridge-hub-kusama/src/weights/mod.rs b/system-parachains/bridge-hubs/bridge-hub-kusama/src/weights/mod.rs index e226021e77..60dfbea8db 100644 --- a/system-parachains/bridge-hubs/bridge-hub-kusama/src/weights/mod.rs +++ b/system-parachains/bridge-hubs/bridge-hub-kusama/src/weights/mod.rs @@ -34,5 +34,4 @@ pub mod xcm; pub use block_weights::constants::BlockExecutionWeight; pub use extrinsic_weights::constants::ExtrinsicBaseWeight; -pub use paritydb_weights::constants::ParityDbWeight; pub use rocksdb_weights::constants::RocksDbWeight; diff --git a/system-parachains/bridge-hubs/bridge-hub-polkadot/src/weights/mod.rs b/system-parachains/bridge-hubs/bridge-hub-polkadot/src/weights/mod.rs index e226021e77..60dfbea8db 100644 --- a/system-parachains/bridge-hubs/bridge-hub-polkadot/src/weights/mod.rs +++ b/system-parachains/bridge-hubs/bridge-hub-polkadot/src/weights/mod.rs @@ -34,5 +34,4 @@ pub mod xcm; pub use block_weights::constants::BlockExecutionWeight; pub use extrinsic_weights::constants::ExtrinsicBaseWeight; -pub use paritydb_weights::constants::ParityDbWeight; pub use rocksdb_weights::constants::RocksDbWeight; diff --git a/system-parachains/collectives/collectives-polkadot/src/weights/mod.rs b/system-parachains/collectives/collectives-polkadot/src/weights/mod.rs index 05e3bc1bb1..187daf121b 100644 --- a/system-parachains/collectives/collectives-polkadot/src/weights/mod.rs +++ b/system-parachains/collectives/collectives-polkadot/src/weights/mod.rs @@ -41,5 +41,4 @@ pub mod rocksdb_weights; pub use block_weights::constants::BlockExecutionWeight; pub use extrinsic_weights::constants::ExtrinsicBaseWeight; -pub use paritydb_weights::constants::ParityDbWeight; pub use rocksdb_weights::constants::RocksDbWeight;