fix: frozen coins displaying incorrect amounts in monero (#2385)

cyan committed Jul 18, 2025 at 04:21 UTC b6a7dde8e4a46da7e5cc82019c26876d4fa5d01b
1 file changed +5 -3
cw_monero/lib/monero_wallet.dart
+5 -3
@@ -852,10 +852,12 @@ abstract class MoneroWalletBase extends WalletBase<MoneroBalance,
852 }
853
854 void _askForUpdateBalance() {
855 - final unlockedBalance = _getUnlockedBalance();
855 + final _ub = _getUnlockedBalance();
856 + final _fb =_getFrozenBalance();
857 + final unlockedBalance = _ub - _fb;
858 final fullBalance = monero_wallet.getFullBalance(
857 - accountIndex: walletAddresses.account!.id);
858 - final frozenBalance = _getFrozenBalance();
859 + accountIndex: walletAddresses.account!.id) - _fb;
860 + final frozenBalance = _fb;
861 if (balance[currency]!.fullBalance != fullBalance ||
862 balance[currency]!.unlockedBalance != unlockedBalance ||
863 balance[currency]!.frozenBalance != frozenBalance) {