From 1a10c3aba8ebe5e16d7f6af117ae3063a89d4032 Mon Sep 17 00:00:00 2001 From: Josh Harvey Date: Fri, 8 Apr 2016 02:28:51 +0100 Subject: [PATCH] load coins from config --- bin/ssu | 1 + lib/routes.js | 3 ++- todo.txt | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/ssu b/bin/ssu index bf8e4fe5..057a4e1e 100755 --- a/bin/ssu +++ b/bin/ssu @@ -139,6 +139,7 @@ function crypto () { ticker: tickerPlugin, transfer: walletPlugin } + config.exchanges.settings.coins = ['BTC', code] return db.none('update user_config set data=$1 where type=$2', [config, 'exchanges']) }) .then(function () { diff --git a/lib/routes.js b/lib/routes.js index 74213fc8..b7d382c5 100644 --- a/lib/routes.js +++ b/lib/routes.js @@ -90,7 +90,8 @@ function poll (req, res) { fiatTxLimit: settings.fiatTxLimit, reboot: reboot, rates: rates, - balances: balances + balances: balances, + coins: settings.coins } if (response.idVerificationEnabled) { diff --git a/todo.txt b/todo.txt index 64f0215d..db724706 100644 --- a/todo.txt +++ b/todo.txt @@ -30,5 +30,5 @@ alter table pending_transactions alter satoshis TYPE bigint; alter table bills add crypto_code text default 'BTC'; alter table bills alter satoshis TYPE bigint; -- test against old server - remove debug +- test trading