2024-03-10 02:51:30 +00:00
|
|
|
import 'package:cw_core/amount_converter.dart';
|
2023-11-17 17:40:23 +00:00
|
|
|
import 'package:cw_core/balance.dart';
|
2024-03-10 02:51:30 +00:00
|
|
|
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;
|
2023-12-16 08:49:23 +00:00
|
|
|
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
|
2024-03-10 02:51:30 +00:00
|
|
|
String get formattedAdditionalBalance => AmountConverter.amountIntToString(CryptoCurrency.zano, total-unlocked);
|
2023-11-17 17:40:23 +00:00
|
|
|
|
|
|
|
@override
|
2024-03-10 02:51:30 +00:00
|
|
|
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
|
2023-12-16 08:49:23 +00:00
|
|
|
String get formattedFrozenBalance => '';
|
2023-11-17 17:40:23 +00:00
|
|
|
|
|
|
|
}
|