2023-07-24 16:56:20 +00:00
|
|
|
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;
|
|
|
|
|
2023-07-24 18:09:28 +00:00
|
|
|
NanoBalance({required this.currentBalance, required this.receivableBalance}) : super(0, 0) {
|
2023-07-24 16:56:20 +00:00
|
|
|
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));
|
2023-07-24 18:09:28 +00:00
|
|
|
|
|
|
|
@override
|
2023-07-27 14:30:07 +00:00
|
|
|
String get formattedAvailableBalance => "0";
|
2023-07-24 18:09:28 +00:00
|
|
|
|
|
|
|
@override
|
2023-07-27 14:30:07 +00:00
|
|
|
String get formattedAdditionalBalance => "0";
|
2023-07-24 16:56:20 +00:00
|
|
|
}
|