diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/account.js | 2 | ||||
| -rw-r--r-- | lib/register.js | 2 |
2 files changed, 2 insertions, 2 deletions
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(); |
