fix: missing import
refactor: unify geth transaction between eth and erc20 tokens
This commit is contained in:
parent
8e099e3283
commit
de832e435b
2 changed files with 11 additions and 58 deletions
|
|
@ -6,7 +6,7 @@ function truncateCrypto (cryptoAtoms, cryptoCode) {
|
|||
const DECIMAL_PLACES = 3
|
||||
if (cryptoAtoms.eq(0)) return cryptoAtoms
|
||||
|
||||
const scale = utils.getCryptoCurrency(cryptoCode).displayScale
|
||||
const scale = coinUtils.getCryptoCurrency(cryptoCode).displayScale
|
||||
const scaleFactor = BN(10).pow(scale)
|
||||
|
||||
return BN(cryptoAtoms).truncated().div(scaleFactor)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue