cake_wallet/cw_zano/lib/zano_balance.dart

21 lines
667 B
Dart
Raw Normal View History

import 'package:cw_core/amount_converter.dart';
2023-11-17 17:40:23 +00:00
import 'package:cw_core/balance.dart';
import 'package:cw_core/crypto_currency.dart';
2023-12-14 04:51:16 +00:00
import 'package:cw_core/monero_amount_format.dart';
2023-10-02 14:17:35 +00:00
2023-11-17 17:40:23 +00:00
class ZanoBalance extends Balance {
2023-12-14 04:51:16 +00:00
final int total;
final int unlocked;
ZanoBalance({required this.total, required this.unlocked}): super(unlocked, total-unlocked);
2023-12-14 04:51:16 +00:00
2023-11-17 17:40:23 +00:00
@override
String get formattedAdditionalBalance => AmountConverter.amountIntToString(CryptoCurrency.zano, total-unlocked);
2023-11-17 17:40:23 +00:00
@override
String get formattedAvailableBalance => AmountConverter.amountIntToString(CryptoCurrency.zano, unlocked);
2023-11-17 17:40:23 +00:00
2023-12-14 04:51:16 +00:00
@override
String get formattedFrozenBalance => '';
2023-11-17 17:40:23 +00:00
}