This commit is contained in:
fossephate 2024-09-24 16:31:33 -07:00
parent 154eee317b
commit d040793dd5

View file

@ -37,7 +37,7 @@ class ElectrumBalance extends Balance {
@override
String get formattedAvailableBalance =>
bitcoinAmountToString(amount: confirmed + secondConfirmed - frozen);
bitcoinAmountToString(amount: confirmed - frozen);
@override
String get formattedAdditionalBalance => bitcoinAmountToString(amount: unconfirmed);
@ -54,6 +54,10 @@ class ElectrumBalance extends Balance {
@override
String get formattedSecondAdditionalBalance => bitcoinAmountToString(amount: secondUnconfirmed);
@override
String get formattedFullAvailableBalance =>
bitcoinAmountToString(amount: confirmed + secondConfirmed - frozen);
String toJSON() => json.encode({
'confirmed': confirmed,
'unconfirmed': unconfirmed,