better handling of ticker errors
This commit is contained in:
parent
e4888da2f3
commit
fafac16742
2 changed files with 15 additions and 0 deletions
|
|
@ -38,6 +38,8 @@ function plugins (settings, deviceId) {
|
|||
const cryptoConfig = configManager.scoped(cryptoCode, deviceId, settings.config)
|
||||
const rateRec = tickers[i]
|
||||
|
||||
if (!rateRec) return
|
||||
|
||||
const cashInCommission = BN(1).add(BN(cryptoConfig.cashInCommission).div(100))
|
||||
|
||||
const cashOutCommission = _.isNil(cryptoConfig.cashOutCommission)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue