Skip to content

Commit

Permalink
weave-runtime: reduce the existential deposit to 100 milli units
Browse files Browse the repository at this point in the history
in a permission-less runtime, user's minimum account balance should be near 0.

Signed-off-by: Amar Tumballi <[email protected]>
  • Loading branch information
amarts committed Oct 28, 2024
1 parent c134755 commit f301599
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runtimes/weave/constants/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ pub mod weights;
pub mod currency {
use cord_primitives::Balance;

/// The existential deposit.
pub const EXISTENTIAL_DEPOSIT: Balance = 100 * UNITS;

pub const WAY: Balance = 1_000_000_000_000;
pub const UNITS: Balance = WAY;
pub const MILLIUNITS: Balance = UNITS / 1_000;
pub const NANOUNITS: Balance = MILLIUNITS / 100;

/// The existential deposit.
pub const EXISTENTIAL_DEPOSIT: Balance = 100 * MILLIUNITS;

pub const fn deposit(items: u32, bytes: u32) -> Balance {
items as Balance * 100 * UNITS + (bytes as Balance) * 100 * MILLIUNITS
}
Expand Down

0 comments on commit f301599

Please sign in to comment.