From 60cd6205072deed18b1940c53713c87719f53123 Mon Sep 17 00:00:00 2001 From: alstjd0921 Date: Tue, 24 Oct 2023 19:17:35 +0900 Subject: [PATCH] fix: evm reducible is usable() --- frame/balances/src/impl_fungible.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/frame/balances/src/impl_fungible.rs b/frame/balances/src/impl_fungible.rs index c1d4ce7165855..81bfa808adddf 100644 --- a/frame/balances/src/impl_fungible.rs +++ b/frame/balances/src/impl_fungible.rs @@ -74,15 +74,7 @@ impl, I: 'static> fungible::Inspect for Pallet preservation: Preservation, force: Fortitude, ) -> Self::Balance { - let a = Self::account(who); - let mut untouchable = Zero::zero(); - if force == Polite { - // Frozen balance applies to total. Anything on hold therefore gets discounted from the - // limit given by the freezes. - untouchable = a.frozen.saturating_add(a.reserved); - } - // Liquid balance is what is neither on hold nor frozen/required for provider. - a.free.saturating_sub(untouchable) + Self::account(who).usable() } fn can_deposit( who: &T::AccountId,