mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-25 21:19:37 +00:00
32 lines
1.1 KiB
Dart
32 lines
1.1 KiB
Dart
import 'package:cw_core/balance.dart';
|
|
import 'package:cw_core/currency.dart';
|
|
import 'package:cw_core/monero_amount_format.dart';
|
|
|
|
String rawToFormattedAmount(BigInt amount, Currency currency) {
|
|
return "";
|
|
}
|
|
|
|
class NanoBalance extends Balance {
|
|
final BigInt currentBalance;
|
|
final BigInt receivableBalance;
|
|
late String formattedCurrentBalance;
|
|
late String formattedReceivableBalance;
|
|
|
|
NanoBalance({required this.currentBalance, required this.receivableBalance}) : super(0, 0) {
|
|
this.formattedCurrentBalance = "";
|
|
this.formattedReceivableBalance = "";
|
|
}
|
|
|
|
// NanoBalance.fromString(
|
|
// {required this.formattedCurrentBalance, required this.formattedReceivableBalance})
|
|
// : currentBalance = moneroParseAmount(amount: formattedCurrentBalance),
|
|
// receivableBalance = moneroParseAmount(amount: formattedReceivableBalance),
|
|
// super(moneroParseAmount(amount: formattedReceivableBalance),
|
|
// moneroParseAmount(amount: formattedCurrentBalance));
|
|
|
|
@override
|
|
String get formattedAvailableBalance => "0";
|
|
|
|
@override
|
|
String get formattedAdditionalBalance => "0";
|
|
}
|