From 2fe2f58cb44ed75008d0c104ef6e011dd20d1a0e Mon Sep 17 00:00:00 2001 From: OmarHatem Date: Sat, 28 Dec 2024 07:15:59 +0200 Subject: [PATCH] fix available balance for monero/wownero --- cw_core/lib/monero_balance.dart | 2 +- cw_core/lib/wownero_balance.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cw_core/lib/monero_balance.dart b/cw_core/lib/monero_balance.dart index 42c00b97e..34f51faf9 100644 --- a/cw_core/lib/monero_balance.dart +++ b/cw_core/lib/monero_balance.dart @@ -4,7 +4,7 @@ import 'package:cw_core/monero_amount_format.dart'; class MoneroBalance extends Balance { MoneroBalance({required this.fullBalance, required this.unlockedBalance, this.frozenBalance = 0}) : formattedUnconfirmedBalance = moneroAmountToString(amount: fullBalance - unlockedBalance), - formattedUnlockedBalance = moneroAmountToString(amount: unlockedBalance - frozenBalance), + formattedUnlockedBalance = moneroAmountToString(amount: unlockedBalance), formattedFrozenBalance = moneroAmountToString(amount: frozenBalance), super(unlockedBalance, fullBalance); diff --git a/cw_core/lib/wownero_balance.dart b/cw_core/lib/wownero_balance.dart index b04560a79..916fa90bc 100644 --- a/cw_core/lib/wownero_balance.dart +++ b/cw_core/lib/wownero_balance.dart @@ -4,7 +4,7 @@ import 'package:cw_core/wownero_amount_format.dart'; class WowneroBalance extends Balance { WowneroBalance({required this.fullBalance, required this.unlockedBalance, this.frozenBalance = 0}) : formattedUnconfirmedBalance = wowneroAmountToString(amount: fullBalance - unlockedBalance), - formattedUnlockedBalance = wowneroAmountToString(amount: unlockedBalance - frozenBalance), + formattedUnlockedBalance = wowneroAmountToString(amount: unlockedBalance), formattedFrozenBalance = wowneroAmountToString(amount: frozenBalance), super(unlockedBalance, fullBalance);