Function frame_support::traits::tokens::fungible::conformance_tests::inspect_mutate::reducible_balance_protect_preserve
source · pub fn reducible_balance_protect_preserve<T, AccountId>(
_dust_trap: Option<AccountId>,
)where
T: Mutate<AccountId>,
<T as Inspect<AccountId>>::Balance: AtLeast8BitUnsigned + Debug,
AccountId: AtLeast8BitUnsigned,
Expand description
Test the reducible_balance function with Preservation::Protect and Preservation::Preserve.
This test verifies that the reducible_balance function returns the account balance minus the minimum balance when using either Preservation::Protect or Preservation::Preserve.
§Type Parameters
- T: Implements Mutate<AccountId>.
- AccountId: Account identifier implementing AtLeast8BitUnsigned.