This commit is contained in:
Josh Harvey 2016-11-28 03:34:18 +02:00
parent ee0eecbd30
commit 48a9f9d204
14 changed files with 186 additions and 130 deletions

View file

@ -6,10 +6,10 @@ const FETCH_INTERVAL = 10000
function getRates (fiatCode, cryptoCode) {
return Promise.resolve()
.then(() => {
const settings = settingsLoader.settings
const settings = settingsLoader.settings()
const config = settings.config
const plugin = configManager.cryptoScoped(cryptoCode, config).cryptoServices.ticker
const account = settings.accounts.plugin
const account = settings.accounts[plugin]
const ticker = require('lamassu-' + plugin)
return ticker.ticker(account, fiatCode, cryptoCode)