@riocrypto/common-server 1.0.822 → 1.0.823

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.
@@ -32,6 +32,9 @@ const getExchangeRates = (from, to) => __awaiter(void 0, void 0, void 0, functio
32
32
  let conversionRateWithVolatilityMarkup;
33
33
  conversionRateWithVolatilityMarkup = conversionRate - maximumPriceChange;
34
34
  let exchangeRateMultiplier = 0.9997;
35
+ if (from === common_1.Fiat.PEN) {
36
+ exchangeRateMultiplier = 0.9987;
37
+ }
35
38
  if (from === common_1.Fiat.PEN || to === common_1.Fiat.PEN) {
36
39
  const now = new Date();
37
40
  const peruTimezoneOffset = -5; // Peru is in the UTC-5 time zone
@@ -41,7 +44,7 @@ const getExchangeRates = (from, to) => __awaiter(void 0, void 0, void 0, functio
41
44
  exchangeRateMultiplier = 0.997;
42
45
  }
43
46
  }
44
- if (to === common_1.Fiat.USD) {
47
+ if (from === common_1.Fiat.USD) {
45
48
  exchangeRateMultiplier = 0.999;
46
49
  }
47
50
  const conversionRateWithRioMarkup = to === from ? conversionRate : conversionRate * exchangeRateMultiplier;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.822",
3
+ "version": "1.0.823",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",