diff options
| author | Adam Soltys <[email protected]> | 2020-09-16 23:05:14 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-09-16 23:05:14 -0700 |
| commit | 49883ffcf2b01f4ca85f87cd55ba17cc8d6aaea9 (patch) | |
| tree | eb3befe88898a91a153690729d025e5f339f4cbf /lib | |
| parent | 55a37c3a545928553d6a540431f6266cb24fa401 (diff) | |
| download | coinos-server-49883ffcf2b01f4ca85f87cd55ba17cc8d6aaea9.tar.gz coinos-server-49883ffcf2b01f4ca85f87cd55ba17cc8d6aaea9.zip | |
add account network, fix internal asset transfers
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(); |
