refactor: replace custom field function with const and move update trade logic inside a function

This commit is contained in:
José Oliveira 2021-06-10 22:25:14 +01:00 committed by Josh Harvey
parent f45c783876
commit 8567b7887c
6 changed files with 25 additions and 19 deletions

View file

@ -19,6 +19,4 @@ const loadConfig = (account) => {
return { ...mapped, timeout: 3000 }
}
const loadTradeId = (options, id) => _.assign({}, options)
module.exports = { loadTradeId, loadConfig, REQUIRED_CONFIG_FIELDS, CRYPTO, FIAT, ORDER_TYPE, AMOUNT_PRECISION }
module.exports = { loadConfig, REQUIRED_CONFIG_FIELDS, CRYPTO, FIAT, ORDER_TYPE, AMOUNT_PRECISION }