chore: redirect coin dependencies to l-c module
This commit is contained in:
parent
3423e2ddd0
commit
bb433164ab
31 changed files with 8 additions and 54 deletions
|
|
@ -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}`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue