From 80aaf7969144093b9fdacbd311765f3d1c3ebd38 Mon Sep 17 00:00:00 2001 From: joe petrowski <25483142+joepetrowski@users.noreply.github.com> Date: Fri, 15 Mar 2024 10:23:23 +0100 Subject: [PATCH] Change NFT Deposits According to RFC-45 (#237) As specified in [RFC 45](https://github.com/polkadot-fellows/RFCs/blob/main/text/0045-nft-deposits-asset-hub.md#enhanced-approach-to-further-lower-barriers-for-entry) --- CHANGELOG.md | 1 + .../asset-hubs/asset-hub-kusama/src/lib.rs | 10 +++++----- .../asset-hubs/asset-hub-polkadot/src/lib.rs | 10 +++++----- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 273017fff8..8f2a48bfc0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Refund any leases that are not migrated to Coretime (have holes in them/have not yet started) ([polkadot-fellows/runtimes#206](https://github.com/polkadot-fellows/runtimes/pull/206)) - Enable Elastic Scaling node side feature for Kusama ([polkadot-fellows/runtimes#205](https://github.com/polkadot-fellows/runtimes/pull/205)) - Cancel Parachain Auctions ([polkadot-fellows/runtimes#215](https://github.com/polkadot-fellows/runtimes/pull/215)) +- Update NFT deposits according to RFC-45 ([polkadot-fellows/runtimes#237](https://github.com/polkadot-fellows/runtimes/pull/237)) ### Changed 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 7be2952fd0..6e981deb6f 100644 --- a/system-parachains/asset-hubs/asset-hub-kusama/src/lib.rs +++ b/system-parachains/asset-hubs/asset-hub-kusama/src/lib.rs @@ -840,11 +840,11 @@ parameter_types! { pub NftsPalletFeatures: PalletFeatures = PalletFeatures::all_enabled(); pub const NftsMaxDeadlineDuration: BlockNumber = 12 * 30 * DAYS; // re-use the Uniques deposits - pub const NftsCollectionDeposit: Balance = UniquesCollectionDeposit::get(); - pub const NftsItemDeposit: Balance = UniquesItemDeposit::get(); - pub const NftsMetadataDepositBase: Balance = UniquesMetadataDepositBase::get(); - pub const NftsAttributeDepositBase: Balance = UniquesAttributeDepositBase::get(); - pub const NftsDepositPerByte: Balance = UniquesDepositPerByte::get(); + pub const NftsCollectionDeposit: Balance = system_para_deposit(1, 130); + pub const NftsItemDeposit: Balance = system_para_deposit(1, 164) / 40; + pub const NftsMetadataDepositBase: Balance = system_para_deposit(1, 129) / 10; + pub const NftsAttributeDepositBase: Balance = system_para_deposit(1, 0) / 10; + pub const NftsDepositPerByte: Balance = system_para_deposit(0, 1); } impl pallet_nfts::Config for Runtime { 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 fa6efa5915..408e0cd641 100644 --- a/system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs +++ b/system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs @@ -746,11 +746,11 @@ parameter_types! { pub NftsPalletFeatures: PalletFeatures = PalletFeatures::all_enabled(); pub const NftsMaxDeadlineDuration: BlockNumber = 12 * 30 * DAYS; // re-use the Uniques deposits - pub const NftsCollectionDeposit: Balance = UniquesCollectionDeposit::get(); - pub const NftsItemDeposit: Balance = UniquesItemDeposit::get(); - pub const NftsMetadataDepositBase: Balance = UniquesMetadataDepositBase::get(); - pub const NftsAttributeDepositBase: Balance = UniquesAttributeDepositBase::get(); - pub const NftsDepositPerByte: Balance = UniquesDepositPerByte::get(); + pub const NftsCollectionDeposit: Balance = system_para_deposit(1, 130); + pub const NftsItemDeposit: Balance = system_para_deposit(1, 164) / 40; + pub const NftsMetadataDepositBase: Balance = system_para_deposit(1, 129) / 10; + pub const NftsAttributeDepositBase: Balance = system_para_deposit(1, 0) / 10; + pub const NftsDepositPerByte: Balance = system_para_deposit(0, 1); } impl pallet_nfts::Config for Runtime {