Skip to content

Commit

Permalink
Allow 2 balances holds; lower per byte deposit to 1 cent
Browse files Browse the repository at this point in the history
  • Loading branch information
kacperzuk-neti committed Jun 21, 2024
1 parent 2e704fe commit 5d7df40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion substrate/bin/node/runtime/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub mod currency {
pub const DOLLARS: Balance = 100 * CENTS; // = 1_000_000_000_000 = 1 LLD

pub const fn deposit(items: u32, bytes: u32) -> Balance {
items as Balance * 15 * CENTS + (bytes as Balance) * 6 * CENTS
items as Balance * 15 * CENTS + (bytes as Balance) * 1 * CENTS
}
}

Expand Down
3 changes: 2 additions & 1 deletion substrate/bin/node/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ parameter_types! {
// This number may need to be adjusted in the future if this assumption no longer holds true.
pub const MaxLocks: u32 = 50;
pub const MaxReserves: u32 = 50;
pub const MaxHolds: u32 = 2;
}

impl pallet_balances::Config for Runtime {
Expand All @@ -503,7 +504,7 @@ impl pallet_balances::Config for Runtime {
type FreezeIdentifier = ();
type MaxFreezes = ();
type RuntimeHoldReason = RuntimeHoldReason;
type MaxHolds = ();
type MaxHolds = MaxHolds;
}

parameter_types! {
Expand Down

0 comments on commit 5d7df40

Please sign in to comment.