From d230b6a07bc3855407251991926ab0f257c55a5a Mon Sep 17 00:00:00 2001 From: Serhii Date: Mon, 27 Mar 2023 12:34:10 +0300 Subject: [PATCH] minor fixes --- cw_core/lib/monero_balance.dart | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/cw_core/lib/monero_balance.dart b/cw_core/lib/monero_balance.dart index ff0a54462..b79169af2 100644 --- a/cw_core/lib/monero_balance.dart +++ b/cw_core/lib/monero_balance.dart @@ -6,11 +6,15 @@ class MoneroBalance extends Balance { : formattedFullBalance = moneroAmountToString(amount: fullBalance), formattedUnlockedBalance = moneroAmountToString(amount: unlockedBalance), + formattedFrozen = '', + formattedTotalAvailable = '', super(unlockedBalance, fullBalance); MoneroBalance.fromString( {required this.formattedFullBalance, - required this.formattedUnlockedBalance}) + required this.formattedUnlockedBalance, + required this.formattedFrozen, + required this.formattedTotalAvailable}) : fullBalance = moneroParseAmount(amount: formattedFullBalance), unlockedBalance = moneroParseAmount(amount: formattedUnlockedBalance), super(moneroParseAmount(amount: formattedUnlockedBalance), @@ -20,6 +24,8 @@ class MoneroBalance extends Balance { final int unlockedBalance; final String formattedFullBalance; final String formattedUnlockedBalance; + final String formattedFrozen; + final String formattedTotalAvailable; @override String get formattedAvailableBalance => formattedUnlockedBalance; @@ -28,8 +34,8 @@ class MoneroBalance extends Balance { String get formattedAdditionalBalance => formattedFullBalance; @override - String get formattedFrozenBalance => ''; + String get formattedFrozenBalance => formattedFrozen; @override - String get formattedTotalAvailableBalance => ''; + String get formattedTotalAvailableBalance => formattedTotalAvailable; }