mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 12:09:43 +00:00
18 lines
520 B
Dart
18 lines
520 B
Dart
import 'package:cw_core/balance.dart';
|
|
import 'package:cw_core/monero_amount_format.dart';
|
|
|
|
class ZanoBalance extends Balance {
|
|
final int total;
|
|
final int unlocked;
|
|
ZanoBalance({required this.total, required this.unlocked}): super(unlocked, total-unlocked);
|
|
|
|
@override
|
|
String get formattedAdditionalBalance => moneroAmountToString(amount: total-unlocked);
|
|
|
|
@override
|
|
String get formattedAvailableBalance => moneroAmountToString(amount: unlocked);
|
|
|
|
@override
|
|
String get formattedFrozenBalance => '';
|
|
|
|
}
|