cake_wallet/cw_zano/lib/zano_balance.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 => '';
}