mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 11:39:22 +00:00
minor fixes
This commit is contained in:
parent
4915df9fb7
commit
d230b6a07b
1 changed files with 9 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue