Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Prev Previous commit
Next Next commit
Docs
  • Loading branch information
gavofyork committed Mar 21, 2023
commit 8272a0f99b35f7062dbfa62888c463fa480421c2
11 changes: 7 additions & 4 deletions frame/balances/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,14 @@ pub mod pallet {
/// Handler for the unbalanced reduction when removing a dust account.
type DustRemoval: OnUnbalanced<CreditOf<Self, I>>;

/// The minimum amount required to keep an account open. Should be greater than zero or
/// will open up a DoS vector. In case you have multiple sources of provider references,
/// you may also get unexpected behaviour if you set this to zero.
/// The minimum amount required to keep an account open. MUST BE GREATER THAN ZERO!
///
/// Do yourself a favour: make it at least one :)
/// If you *really* need it to be zero, you can enable the feature `zero_ed` for this
/// pallet. However, you do so at your own risk: this will open up a major DoS vector. In
/// case you have multiple sources of provider references, you may also get unexpected
/// behaviour if you set this to zero.
///
/// Bottom line: Do yourself a favour and make it at least one!
#[pallet::constant]
type ExistentialDeposit: Get<Self::Balance>;

Expand Down