Skip to content

Commit

Permalink
Merge pull request #389 from liberland/fix-deploying-contracts
Browse files Browse the repository at this point in the history
Allow 2 balances holds; lower per byte deposit to 1 cent
  • Loading branch information
DorianSternVukotic authored Jun 21, 2024
2 parents 2e704fe + 5d7df40 commit 607b465
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 607b465

Please sign in to comment.