feat: add fixed fee reporting to CAR

This commit is contained in:
naconner 2020-01-21 15:20:34 -05:00 committed by Josh Harvey
parent 8f5f40032c
commit 77b678e991

View file

@ -29,6 +29,7 @@ function mapCoin (info, deviceId, settings, cryptoCode) {
const cashInFee = showRates ? cryptoConfig.cashInCommission / 100 : null const cashInFee = showRates ? cryptoConfig.cashInCommission / 100 : null
const cashOutFee = showRates ? cryptoConfig.cashOutCommission / 100 : null const cashOutFee = showRates ? cryptoConfig.cashOutCommission / 100 : null
const cashInFixedFee = showRates ? cryptoConfig.cashInFee : null
const cashInRate = showRates ? _.invoke('cashIn.toNumber', rates) : null const cashInRate = showRates ? _.invoke('cashIn.toNumber', rates) : null
const cashOutRate = showRates ? _.invoke('cashOut.toNumber', rates) : null const cashOutRate = showRates ? _.invoke('cashOut.toNumber', rates) : null
@ -36,6 +37,7 @@ function mapCoin (info, deviceId, settings, cryptoCode) {
cryptoCode, cryptoCode,
cashInFee, cashInFee,
cashOutFee, cashOutFee,
cashInFixedFee,
cashInRate, cashInRate,
cashOutRate cashOutRate
} }