mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-10-31 17:37:41 +00:00
14 lines
604 B
Dart
14 lines
604 B
Dart
import 'package:flutter/foundation.dart';
|
|
import 'package:cake_wallet/bitcoin/bitcoin_amount_format.dart';
|
|
import 'package:cake_wallet/src/domain/common/balance.dart';
|
|
|
|
class BitcoinBalance extends Balance {
|
|
BitcoinBalance({@required this.confirmed, @required this.unconfirmed});
|
|
|
|
final int confirmed;
|
|
final int unconfirmed;
|
|
int get total => confirmed + unconfirmed;
|
|
String get confirmedFormatted => bitcoinAmountToString(amount: confirmed);
|
|
String get unconfirmedFormatted => bitcoinAmountToString(amount: unconfirmed);
|
|
String get totalFormatted => bitcoinAmountToString(amount: total);
|
|
}
|