Function frame_support::traits::tokens::fungible::conformance_tests::inspect_mutate::burn_from_best_effort_success
source · pub fn burn_from_best_effort_success<T, AccountId>(
_dust_trap: Option<AccountId>,
)where
T: Mutate<AccountId>,
<T as Inspect<AccountId>>::Balance: AtLeast8BitUnsigned + Debug,
AccountId: AtLeast8BitUnsigned,
Expand description
Test the burn_from
function for successfully burning tokens with a best-effort approach.
This test verifies that the burn_from
function with Precision::BestEffort
correctly
reduces the account balance and total issuance values by the reducible balance when
attempting to burn an amount greater than the reducible balance.
§Type Parameters
- `T`: Implements `Mutate` for `AccountId`.
- `AccountId`: Account identifier implementing `AtLeast8BitUnsigned`.