diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-10-19 18:40:29 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-10-19 18:40:29 +0200 |
commit | b0b737f72ecc3cb96acff510906db9f818eab463 (patch) | |
tree | 9096fad889f423c8a6cc15e1df9911dc163ceaf4 /lib/wallet/cryptoLib.ts | |
parent | 2780418c3e2b8cdbfda7738bdfcecf62fc730191 (diff) |
show pending incoming amount
Diffstat (limited to 'lib/wallet/cryptoLib.ts')
-rw-r--r-- | lib/wallet/cryptoLib.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/wallet/cryptoLib.ts b/lib/wallet/cryptoLib.ts index db82b5cf4..498e1cc53 100644 --- a/lib/wallet/cryptoLib.ts +++ b/lib/wallet/cryptoLib.ts @@ -324,6 +324,11 @@ namespace RpcFunctions { native.EddsaPrivateKey.fromCrock( meltCoin.coinPriv)).toCrock(); + let valueOutput = Amounts.getZero(newCoinDenoms[0].value.currency); + for (let denom of newCoinDenoms) { + valueOutput = Amounts.add(valueOutput, denom.value).amount; + } + let refreshSession: RefreshSession = { meltCoinPub: meltCoin.coinPub, newDenoms: newCoinDenoms.map((d) => d.denom_pub), @@ -336,6 +341,7 @@ namespace RpcFunctions { exchangeBaseUrl, transferPrivs, finished: false, + valueOutput, }; return refreshSession; |