cash-in working
This commit is contained in:
parent
f357b6080e
commit
e2d619c56d
3 changed files with 6 additions and 5 deletions
|
|
@ -182,8 +182,8 @@ function computeSendAmount (tx, totals) {
|
|||
var fiatRemaining = (tx.fiat || totals.billsFiat) - totals.txFiat
|
||||
|
||||
var satoshisRemaining = tx.satoshis.eq(0)
|
||||
? totals.billsSatoshis.minus(totals.txSatoshis)
|
||||
: tx.satoshis.minus(totals.txSatoshis)
|
||||
? totals.billsSatoshis.minus(totals.txSatoshis)
|
||||
: tx.satoshis.minus(totals.txSatoshis)
|
||||
|
||||
var result = {
|
||||
fiat: fiatRemaining,
|
||||
|
|
@ -296,7 +296,7 @@ function insertTx (client, session, incoming, tx, satoshis, fiat, stage,
|
|||
incoming,
|
||||
session.fingerprint,
|
||||
tx.toAddress,
|
||||
satoshis,
|
||||
satoshis.toString(),
|
||||
tx.currencyCode,
|
||||
tx.cryptoCode,
|
||||
fiat,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue