Skip to content
Snippets Groups Projects
Commit 575a28d1 authored by Éloïs's avatar Éloïs
Browse files

fix: ensure storage deposits are consistent

parent 5480f52c
No related branches found
No related tags found
1 merge request!43Params
......@@ -57,7 +57,10 @@ pub const BABE_GENESIS_EPOCH_CONFIG: sp_consensus_babe::BabeEpochConfiguration =
allowed_slots: sp_consensus_babe::AllowedSlots::PrimaryAndSecondaryVRFSlots,
};
// 1 unit per item + 1 cent per byte
pub const DEPOSIT_PER_BYTE: Balance = 1;
pub const DEPOSIT_PER_ITEM: Balance = 100;
// Compute storage deposit per items and bytes
pub const fn deposit(items: u32, bytes: u32) -> Balance {
items as Balance * 100 + (bytes as Balance)
items as Balance * DEPOSIT_PER_ITEM + (bytes as Balance * DEPOSIT_PER_BYTE)
}
......@@ -311,6 +311,10 @@ macro_rules! pallets_config {
type WeightInfo = pallet_proxy::weights::SubstrateWeight<Self>;
}
parameter_types! {
pub const DepositBase: Balance = DEPOSIT_PER_ITEM;
pub const DepositFactor: Balance = DEPOSIT_PER_BYTE * 32;
}
impl pallet_multisig::Config for Runtime {
type Event = Event;
type Call = Call;
......
......@@ -153,7 +153,5 @@ parameter_types! {
// Multisig
parameter_types! {
pub const DepositBase: Balance = 1000;
pub const DepositFactor: Balance = 10;
pub const MaxSignatories: u16 = 5;
}
......@@ -87,7 +87,5 @@ parameter_types! {
// Multisig
parameter_types! {
pub const DepositBase: Balance = 1000;
pub const DepositFactor: Balance = 10;
pub const MaxSignatories: u16 = 5;
}
......@@ -151,7 +151,5 @@ parameter_types! {
// Multisig
parameter_types! {
pub const DepositBase: Balance = 1000;
pub const DepositFactor: Balance = 10;
pub const MaxSignatories: u16 = 5;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment