Add fallback for null commissions
This commit is contained in:
parent
760d765520
commit
fe72b4fcaf
1 changed files with 2 additions and 2 deletions
|
|
@ -198,8 +198,8 @@ function plugins (settings, deviceId) {
|
||||||
const config = configManager.scoped(cryptoCode, deviceId, settings.config)
|
const config = configManager.scoped(cryptoCode, deviceId, settings.config)
|
||||||
const minimumTx = BN(config.minimumTx)
|
const minimumTx = BN(config.minimumTx)
|
||||||
const cashInFee = BN(config.cashInFee)
|
const cashInFee = BN(config.cashInFee)
|
||||||
const cashInCommission = BN(config.cashInCommission)
|
const cashInCommission = BN(config.cashInCommission || 0)
|
||||||
const cashOutCommission = BN(config.cashOutCommission)
|
const cashOutCommission = BN(config.cashOutCommission || 0)
|
||||||
const cryptoRec = coinUtils.getCryptoCurrency(cryptoCode)
|
const cryptoRec = coinUtils.getCryptoCurrency(cryptoCode)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue