pub fn transfer_expendable_dust<T, AccountId>(dust_trap: Option<AccountId>)where
    T: Mutate<AccountId>,
    <T as Inspect<AccountId>>::Balance: AtLeast8BitUnsigned + Debug,
    AccountId: AtLeast8BitUnsigned,
Expand description

Test the transfer function with Preservation::Expendable for transferring amounts that leaves an account with less than the minimum balance.

This test verifies that when transferring an amount using Preservation::Expendable and an account will be left with less than the minimum balance, the account balances are updated, dust is collected properly depending on whether a dust_trap exists, and the total issuance and active issuance values remain consistent.

Parameters

  • dust_trap: An optional account identifier to which dust will be collected. If None, dust will be removed from the total and active issuance.

Type Parameters

- T: Implements Mutate<AccountId>.
- AccountId: Account identifier implementing AtLeast8BitUnsigned.