From 49883ffcf2b01f4ca85f87cd55ba17cc8d6aaea9 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 16 Sep 2020 23:05:14 -0700 Subject: add account network, fix internal asset transfers --- lib/account.js | 2 +- lib/register.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/account.js b/lib/account.js index 9355bd97..27ef830a 100644 --- a/lib/account.js +++ b/lib/account.js @@ -19,7 +19,7 @@ module.exports = async (asset, user) => { let ticker = asset.substr(0, 3).toUpperCase(); let precision = 8; - const assets = (await axios.get("https://assets.blockstream.info/")).data; + const assets = app.get('assets'); if (assets[asset]) { ({ domain, ticker, precision, name } = assets[asset]); diff --git a/lib/register.js b/lib/register.js index c8aa8e5d..7502c626 100644 --- a/lib/register.js +++ b/lib/register.js @@ -58,7 +58,7 @@ register = async (user, ip, requireChallenge) => { user.currency = countries[info.data.country_code] || "USD"; } - user.currencies = [...new Set([user.currency, "CAD", "USD", "JPY"])]; + user.currencies = [...new Set([user.currency, "CAD", "USD"])]; user.fiat = false; user.otpsecret = authenticator.generateSecret(); -- cgit v1.2.3