From 746ac7f24b46e76c4bc90d4b981d58e4482b111c Mon Sep 17 00:00:00 2001 From: nedievas Date: Sun, 9 Jul 2017 09:14:14 +0300 Subject: [PATCH] simple fix for correct asset display before fix: zenbot balance --debug bitfinex.xrp-usd 2017-07-09 05:57:33 0.24 XRP-USD Asset: 1190.00000000 Currency: 0.75283021 Total: 285.11523020999994 after fix: zenbot balance --debug bitfinex.xrp-usd 2017-07-09 06:08:49 0.23815000 XRP-USD Asset: 1190.00000000 Currency: 0.75283021 Total: 284.15133021 --- lib/engine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/engine.js b/lib/engine.js index 675d9fb9e0..1ac7b3587c 100644 --- a/lib/engine.js +++ b/lib/engine.js @@ -79,7 +79,7 @@ module.exports = function container (get, set, clear) { } function isFiat () { - return !s.currency.match(/^BTC|ETH|XMR|USDT$/) + return !s.currency.match(/^BTC|ETH|XMR|USD|USDT$/) } var max_fc_width = 0