mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-31 15:06:04 +00:00
19 lines
498 B
Dart
19 lines
498 B
Dart
|
import 'package:cw_decred/amount_format.dart';
|
||
|
import 'package:cw_core/balance.dart';
|
||
|
|
||
|
class DecredBalance extends Balance {
|
||
|
const DecredBalance({required this.confirmed, required this.unconfirmed})
|
||
|
: super(confirmed, unconfirmed);
|
||
|
|
||
|
final int confirmed;
|
||
|
final int unconfirmed;
|
||
|
|
||
|
@override
|
||
|
String get formattedAvailableBalance =>
|
||
|
decredAmountToString(amount: confirmed);
|
||
|
|
||
|
@override
|
||
|
String get formattedAdditionalBalance =>
|
||
|
decredAmountToString(amount: unconfirmed);
|
||
|
}
|