@riocrypto/common-server 1.0.819 → 1.0.821

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.
@@ -30,7 +30,7 @@ const getExchangeRates = (from, to) => __awaiter(void 0, void 0, void 0, functio
30
30
  ? yield kapstarClient.getBRLExchangeRateUSD()
31
31
  : yield currencyAPIClient.convert(from, to);
32
32
  let conversionRateWithVolatilityMarkup;
33
- conversionRateWithVolatilityMarkup = conversionRate + maximumPriceChange;
33
+ conversionRateWithVolatilityMarkup = conversionRate - maximumPriceChange;
34
34
  let exchangeRateMultiplier = 0.999;
35
35
  if (from === common_1.Fiat.PEN || to === common_1.Fiat.PEN) {
36
36
  const now = new Date();
@@ -56,6 +56,6 @@ exports.getExchangeRates = getExchangeRates;
56
56
  function getDateRange() {
57
57
  const endDate = new Date(); // Current time
58
58
  // Subtract 10 minutes from the end_date
59
- const startDate = new Date(endDate.getTime() - QUOTE_DURATION_MINUTES * 60 * 1000);
59
+ const startDate = new Date(endDate.getTime() - 10 * 60 * 1000);
60
60
  return { startDate, endDate };
61
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.819",
3
+ "version": "1.0.821",
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.708",
27
+ "@riocrypto/common": "^1.0.709",
28
28
  "@types/express": "^4.17.13",
29
29
  "axios": "^0.27.2",
30
30
  "ccxt": "^3.0.30",