@riocrypto/common-server 1.0.1404 → 1.0.1406
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,8 +34,8 @@ const getExchangeRates = (fiat) => __awaiter(void 0, void 0, void 0, function* (
|
|
|
34
34
|
const minutes = peruTime.getMinutes();
|
|
35
35
|
// Check if it's between 2:10 PM and 12:00 AM
|
|
36
36
|
if ((hours === 14 && minutes >= 10) || hours > 14 || hours === 0) {
|
|
37
|
-
conversionRateToUSDWithMarkups = conversionRateToUSD * 0.
|
|
38
|
-
conversionRateFromUSDWithMarkups = conversionRateFromUSD * 0.
|
|
37
|
+
conversionRateToUSDWithMarkups = conversionRateToUSD * 0.992;
|
|
38
|
+
conversionRateFromUSDWithMarkups = conversionRateFromUSD * 0.992;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
if (fiat === common_1.Fiat.MXN) {
|
|
@@ -46,12 +46,12 @@ const getExchangeRates = (fiat) => __awaiter(void 0, void 0, void 0, function* (
|
|
|
46
46
|
if ((hours === 15 && minutes >= 45) ||
|
|
47
47
|
(hours > 15 && hours < 24) ||
|
|
48
48
|
(hours === 0 && minutes === 0)) {
|
|
49
|
-
conversionRateToUSDWithMarkups = conversionRateToUSD * 0.
|
|
50
|
-
conversionRateFromUSDWithMarkups = conversionRateFromUSD * 0.
|
|
49
|
+
conversionRateToUSDWithMarkups = conversionRateToUSD * 0.992;
|
|
50
|
+
conversionRateFromUSDWithMarkups = conversionRateFromUSD * 0.992;
|
|
51
51
|
}
|
|
52
52
|
else if (hours >= 0 && hours < 7) {
|
|
53
|
-
conversionRateToUSDWithMarkups = conversionRateToUSD * 0.
|
|
54
|
-
conversionRateFromUSDWithMarkups = conversionRateFromUSD * 0.
|
|
53
|
+
conversionRateToUSDWithMarkups = conversionRateToUSD * 0.991;
|
|
54
|
+
conversionRateFromUSDWithMarkups = conversionRateFromUSD * 0.991;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1406",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@everapi/currencyapi-js": "^1.0.6",
|
|
28
28
|
"@google-cloud/storage": "^6.9.5",
|
|
29
29
|
"@google-cloud/vision": "^4.0.2",
|
|
30
|
-
"@riocrypto/common": "^1.0.
|
|
30
|
+
"@riocrypto/common": "^1.0.1234",
|
|
31
31
|
"@types/express": "^4.17.13",
|
|
32
32
|
"axios": "^0.27.2",
|
|
33
33
|
"ccxt": "^3.0.30",
|