@riocrypto/common-server 1.0.651 → 1.0.652
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -34,7 +34,7 @@ class CurrencyAPIClient {
|
|
|
34
34
|
exchangeRate = currencyAPIResponse.data.data[to].value;
|
|
35
35
|
cache.set(`v3/latest?apikey=${this.apiKey}&base_currency=${from}¤cies=${to}`, currencyAPIResponse.data);
|
|
36
36
|
}
|
|
37
|
-
const rioExchangeRate = to === from ? exchangeRate : exchangeRate * 0.
|
|
37
|
+
const rioExchangeRate = to === from ? exchangeRate : exchangeRate * 0.999;
|
|
38
38
|
return rioExchangeRate;
|
|
39
39
|
}
|
|
40
40
|
catch (e) {
|
|
@@ -43,7 +43,7 @@ class CurrencyAPIClient {
|
|
|
43
43
|
throw new Error(`Unable to get exchange rate from currencyAPI for ${from} to ${to}`);
|
|
44
44
|
}
|
|
45
45
|
const exchangeRate = cachedResponse.data[to].value;
|
|
46
|
-
const rioExchangeRate = to === from ? exchangeRate : exchangeRate * 0.
|
|
46
|
+
const rioExchangeRate = to === from ? exchangeRate : exchangeRate * 0.999;
|
|
47
47
|
return rioExchangeRate;
|
|
48
48
|
}
|
|
49
49
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.652",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@aws-sdk/client-s3": "^3.297.0",
|
|
25
25
|
"@everapi/currencyapi-js": "^1.0.6",
|
|
26
26
|
"@google-cloud/storage": "^6.9.5",
|
|
27
|
-
"@riocrypto/common": "^1.0.
|
|
27
|
+
"@riocrypto/common": "^1.0.595",
|
|
28
28
|
"@types/express": "^4.17.13",
|
|
29
29
|
"axios": "^0.27.2",
|
|
30
30
|
"ccxt": "^3.0.30",
|