coinUtils fixes

This commit is contained in:
Josh Harvey 2017-07-09 13:31:01 +03:00
parent b7aa655587
commit 5a26f718c5
9 changed files with 63 additions and 71 deletions

View file

@ -12,8 +12,9 @@ const CONFIRM_TIME = 180 * SECONDS
let t0
function _balance (cryptoCode) {
const unitScale = coinUtils.unitScale(cryptoCode)
return BN(10).pow(unitScale).mul(10)
const cryptoRec = coinUtils.getCryptoCurrency(cryptoCode)
const unitScale = cryptoRec.unitScale
BN(10).shift(unitScale).round()
}
function balance (account, cryptoCode) {