From e4bafccd9ae6e6fe81244409e626e3b453af2557 Mon Sep 17 00:00:00 2001 From: ghzlatarev Date: Thu, 17 Feb 2022 20:47:19 +0200 Subject: [PATCH 1/2] Adjust treasury and preimage pallets' deposits --- runtime/calamari/src/lib.rs | 6 +++--- runtime/dolphin/src/lib.rs | 4 ++-- runtime/manta/src/lib.rs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/runtime/calamari/src/lib.rs b/runtime/calamari/src/lib.rs index f923e7a02..bc79d614d 100644 --- a/runtime/calamari/src/lib.rs +++ b/runtime/calamari/src/lib.rs @@ -365,7 +365,7 @@ parameter_types! { pub const VotingPeriod: BlockNumber = 7 * DAYS; pub const FastTrackVotingPeriod: BlockNumber = 3 * HOURS; pub const InstantAllowed: bool = true; - pub const MinimumDeposit: Balance = 20 * KMA; + pub const MinimumDeposit: Balance = 1000 * KMA; pub const EnactmentPeriod: BlockNumber = 1 * DAYS; pub const CooloffPeriod: BlockNumber = 7 * DAYS; pub const PreimageByteDeposit: Balance = deposit(0, 1); @@ -498,7 +498,7 @@ impl pallet_membership::Config for Runtime { parameter_types! { pub const ProposalBond: Permill = Permill::from_percent(1); pub const ProposalBondMinimum: Balance = 50 * KMA; - pub const ProposalBondMaximum: Balance = 1000 * KMA; + pub const ProposalBondMaximum: Balance = 10_000 * KMA; pub const SpendPeriod: BlockNumber = 6 * DAYS; pub const Burn: Permill = Permill::from_percent(0); pub const TreasuryPalletId: PalletId = PalletId(*b"py/trsry"); @@ -579,7 +579,7 @@ impl pallet_scheduler::Config for Runtime { parameter_types! { pub const PreimageMaxSize: u32 = 4096 * 1024; - pub const PreimageBaseDeposit: Balance = 1 * KMA; + pub const PreimageBaseDeposit: Balance = 1_000 * KMA; } impl pallet_preimage::Config for Runtime { diff --git a/runtime/dolphin/src/lib.rs b/runtime/dolphin/src/lib.rs index 436c3678d..e488cfa7d 100644 --- a/runtime/dolphin/src/lib.rs +++ b/runtime/dolphin/src/lib.rs @@ -496,7 +496,7 @@ impl pallet_membership::Config for Runtime { parameter_types! { pub const ProposalBond: Permill = Permill::from_percent(1); pub const ProposalBondMinimum: Balance = 50 * DOL; - pub const ProposalBondMaximum: Balance = 1000 * DOL; + pub const ProposalBondMaximum: Balance = 10_000 * DOL; pub const SpendPeriod: BlockNumber = 10 * MINUTES; pub const Burn: Permill = Permill::from_percent(0); pub const TreasuryPalletId: PalletId = PalletId(*b"py/trsry"); @@ -577,7 +577,7 @@ impl pallet_scheduler::Config for Runtime { parameter_types! { pub const PreimageMaxSize: u32 = 4096 * 1024; - pub const PreimageBaseDeposit: Balance = 1 * DOL; + pub const PreimageBaseDeposit: Balance = 1_000 * DOL; } impl pallet_preimage::Config for Runtime { diff --git a/runtime/manta/src/lib.rs b/runtime/manta/src/lib.rs index cddfde247..d1f849f23 100644 --- a/runtime/manta/src/lib.rs +++ b/runtime/manta/src/lib.rs @@ -337,7 +337,7 @@ impl pallet_scheduler::Config for Runtime { parameter_types! { pub const PreimageMaxSize: u32 = 4096 * 1024; - pub const PreimageBaseDeposit: Balance = 1 * MANTA; + pub const PreimageBaseDeposit: Balance = 10 * MANTA; // One cent: $10,000 / MB pub const PreimageByteDeposit: Balance = 1 * cMANTA; } From b7ce28101a349cfcf01d5951732ce003fd19f5db Mon Sep 17 00:00:00 2001 From: ghzlatarev Date: Thu, 17 Feb 2022 21:04:24 +0200 Subject: [PATCH 2/2] Increase ProposalBondMinimum as well --- runtime/calamari/src/lib.rs | 2 +- runtime/dolphin/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/calamari/src/lib.rs b/runtime/calamari/src/lib.rs index bc79d614d..be73def95 100644 --- a/runtime/calamari/src/lib.rs +++ b/runtime/calamari/src/lib.rs @@ -497,7 +497,7 @@ impl pallet_membership::Config for Runtime { parameter_types! { pub const ProposalBond: Permill = Permill::from_percent(1); - pub const ProposalBondMinimum: Balance = 50 * KMA; + pub const ProposalBondMinimum: Balance = 500 * KMA; pub const ProposalBondMaximum: Balance = 10_000 * KMA; pub const SpendPeriod: BlockNumber = 6 * DAYS; pub const Burn: Permill = Permill::from_percent(0); diff --git a/runtime/dolphin/src/lib.rs b/runtime/dolphin/src/lib.rs index e488cfa7d..18f7369a5 100644 --- a/runtime/dolphin/src/lib.rs +++ b/runtime/dolphin/src/lib.rs @@ -495,7 +495,7 @@ impl pallet_membership::Config for Runtime { parameter_types! { pub const ProposalBond: Permill = Permill::from_percent(1); - pub const ProposalBondMinimum: Balance = 50 * DOL; + pub const ProposalBondMinimum: Balance = 500 * DOL; pub const ProposalBondMaximum: Balance = 10_000 * DOL; pub const SpendPeriod: BlockNumber = 10 * MINUTES; pub const Burn: Permill = Permill::from_percent(0);