tx v2 sent amount calc fix

This commit is contained in:
julian 2023-11-30 09:43:40 -06:00
parent 9ad723a5b2
commit fd8ca3edf8

View file

@ -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<String> associatedAddresses() => {