bot18
Version:
A high-frequency cryptocurrency trading bot by Zenbot creator @carlos8f
12 lines • 440 B
JavaScript
function translateHeader (header, recipients) {
if (recipients) {
if (header['from-salty-id'] && recipients[header['from-salty-id']]) {
header['from-salty-id'] = recipients[header['from-salty-id']].toString(true)
}
if (header['to-salty-id'] && recipients[header['to-salty-id']]) {
header['to-salty-id'] = recipients[header['to-salty-id']].toString(true)
}
}
return header
}
module.exports = translateHeader