chore: redirect coin dependencies to l-c module

This commit is contained in:
Sérgio Salgado 2021-01-04 12:21:24 +00:00 committed by Josh Harvey
parent 3423e2ddd0
commit bb433164ab
31 changed files with 8 additions and 54 deletions

View file

@ -3,7 +3,7 @@ const crypto = require('crypto')
const numeral = require('numeral')
const prettyMs = require('pretty-ms')
const coinUtils = require('../coin-utils')
const { utils } = require('lamassu-coins')
const {
CODES_DISPLAY,
NETWORK_DOWN_TIME,
@ -94,7 +94,7 @@ function sendNoAlerts (plugins, smsEnabled, emailEnabled) {
const buildTransactionMessage = (tx, rec, highValueTx, machineName, customer) => {
const isCashOut = tx.direction === 'cashOut'
const direction = isCashOut ? 'Cash Out' : 'Cash In'
const crypto = `${coinUtils.toUnit(tx.cryptoAtoms, tx.cryptoCode)} ${
const crypto = `${utils.toUnit(tx.cryptoAtoms, tx.cryptoCode)} ${
tx.cryptoCode
}`
const fiat = `${tx.fiat} ${tx.fiatCode}`