coinUtils fixes
This commit is contained in:
parent
b7aa655587
commit
5a26f718c5
9 changed files with 63 additions and 71 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue