From fd8ca3edf8cd0d975619aab2e2668eb30991974c Mon Sep 17 00:00:00 2001 From: julian Date: Thu, 30 Nov 2023 09:43:40 -0600 Subject: [PATCH] tx v2 sent amount calc fix --- .../isar/models/blockchain_data/v2/transaction_v2.dart | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/models/isar/models/blockchain_data/v2/transaction_v2.dart b/lib/models/isar/models/blockchain_data/v2/transaction_v2.dart index 61aea5bf0..d373d670f 100644 --- a/lib/models/isar/models/blockchain_data/v2/transaction_v2.dart +++ b/lib/models/isar/models/blockchain_data/v2/transaction_v2.dart @@ -84,7 +84,14 @@ class TransactionV2 { .where((e) => e.walletOwns) .fold(BigInt.zero, (p, e) => p + e.value); - return Amount(rawValue: inSum, fractionDigits: coin.decimals); + return Amount( + rawValue: inSum, + fractionDigits: coin.decimals, + ) - + getAmountReceivedThisWallet( + coin: coin, + ) - + getFee(coin: coin); } Set associatedAddresses() => {