chore: integrate new admin with l-s

This commit is contained in:
Taranto 2020-05-06 22:11:55 +01:00
parent 6b3db134e7
commit bf8f1d991c
72 changed files with 1493 additions and 1611 deletions

View file

@ -1,8 +1,8 @@
const configManager = require('./config-manager')
const configManager = require('./new-config-manager')
const ph = require('./plugin-helper')
function lookupExchange (settings, cryptoCode) {
const exchange = configManager.cryptoScoped(cryptoCode, settings.config).exchange
const exchange = configManager.getWalletSettings(cryptoCode, settings.config).exchange
if (exchange === 'no-exchange') return null
return exchange
}