fix low balance notification

This commit is contained in:
Josh Harvey 2016-04-27 21:53:25 +01:00
parent 6ee2566588
commit c531a4c3fd
2 changed files with 1 additions and 3 deletions

View file

@ -13,8 +13,6 @@ function init (_db, _getBalances, config) {
db = _db
getBalances = _getBalances
console.log('DEBUG2')
console.log(config)
if (config && config.lowBalanceThreshold) {
LOW_BALANCE_THRESHOLD = config.lowBalanceThreshold
}

View file

@ -442,7 +442,7 @@ exports.fiatBalance = function fiatBalance (cryptoCode) {
var unitScale = new BigNumber(10).pow(coins[cryptoCode].unitScale)
var fiatTransferBalance = lastBalance.div(unitScale).times(rate).div(lowBalanceMargin)
return fiatTransferBalance.toFixed(3)
return fiatTransferBalance.round(3).toNumber()
}
/*