| 1 | import 'package:cw_core/amount/money.dart'; |
| 2 | import 'package:cw_core/balance.dart'; |
| 3 | import 'package:cw_core/currency.dart'; |
| 4 | |
| 5 | class ZanoBalance extends Balance { |
| 6 | final Money total; |
| 7 | final Money unlocked; |
| 8 | |
| 9 | ZanoBalance({required this.total, required this.unlocked}) : super(unlocked, (total - unlocked)); |
| 10 | |
| 11 | ZanoBalance.empty(Currency currency) |
| 12 | : total = Money.zero(currency), |
| 13 | unlocked = Money.zero(currency), |
| 14 | super(Money.zero(currency), Money.zero(currency)); |
| 15 | } |