mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
clean up balance file
This commit is contained in:
parent
deddee62d8
commit
4409562a94
1 changed files with 0 additions and 27 deletions
|
@ -3,13 +3,6 @@ import 'dart:convert';
|
|||
import 'package:stackwallet/utilities/amount/amount.dart';
|
||||
import 'package:stackwallet/utilities/enums/coin_enum.dart';
|
||||
|
||||
enum Unit {
|
||||
base,
|
||||
u,
|
||||
m,
|
||||
normal;
|
||||
}
|
||||
|
||||
class Balance {
|
||||
final Coin coin;
|
||||
final Amount total;
|
||||
|
@ -25,26 +18,6 @@ class Balance {
|
|||
required this.pendingSpendable,
|
||||
});
|
||||
|
||||
// Decimal getTotal({bool includeBlocked = true}) => Format.satoshisToAmount(
|
||||
// includeBlocked ? total : total - blockedTotal,
|
||||
// coin: coin,
|
||||
// );
|
||||
//
|
||||
// Decimal getSpendable() => Format.satoshisToAmount(
|
||||
// spendable,
|
||||
// coin: coin,
|
||||
// );
|
||||
//
|
||||
// Decimal getPending() => Format.satoshisToAmount(
|
||||
// pendingSpendable,
|
||||
// coin: coin,
|
||||
// );
|
||||
//
|
||||
// Decimal getBlocked() => Format.satoshisToAmount(
|
||||
// blockedTotal,
|
||||
// coin: coin,
|
||||
// );
|
||||
|
||||
String toJsonIgnoreCoin() => jsonEncode({
|
||||
"total": total.toJsonString(),
|
||||
"spendable": spendable.toJsonString(),
|
||||
|
|
Loading…
Reference in a new issue