mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-09 04:09:25 +00:00
tx v2 sent amount calc fix
This commit is contained in:
parent
9ad723a5b2
commit
fd8ca3edf8
1 changed files with 8 additions and 1 deletions
|
@ -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() => {
|
||||
|
|
Loading…
Reference in a new issue