@riocrypto/common-server 1.0.821 → 1.0.822
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.
|
@@ -31,7 +31,7 @@ const getExchangeRates = (from, to) => __awaiter(void 0, void 0, void 0, functio
|
|
|
31
31
|
: yield currencyAPIClient.convert(from, to);
|
|
32
32
|
let conversionRateWithVolatilityMarkup;
|
|
33
33
|
conversionRateWithVolatilityMarkup = conversionRate - maximumPriceChange;
|
|
34
|
-
let exchangeRateMultiplier = 0.
|
|
34
|
+
let exchangeRateMultiplier = 0.9997;
|
|
35
35
|
if (from === common_1.Fiat.PEN || to === common_1.Fiat.PEN) {
|
|
36
36
|
const now = new Date();
|
|
37
37
|
const peruTimezoneOffset = -5; // Peru is in the UTC-5 time zone
|
|
@@ -41,6 +41,9 @@ const getExchangeRates = (from, to) => __awaiter(void 0, void 0, void 0, functio
|
|
|
41
41
|
exchangeRateMultiplier = 0.997;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
+
if (to === common_1.Fiat.USD) {
|
|
45
|
+
exchangeRateMultiplier = 0.999;
|
|
46
|
+
}
|
|
44
47
|
const conversionRateWithRioMarkup = to === from ? conversionRate : conversionRate * exchangeRateMultiplier;
|
|
45
48
|
const conversionRateWithAllMarkups = to === from
|
|
46
49
|
? conversionRateWithVolatilityMarkup
|