@riocrypto/common-server 1.0.1295 → 1.0.1297

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.
@@ -46,7 +46,7 @@ class ClusterClient {
46
46
  amountCrypto = undefined;
47
47
  }
48
48
  else {
49
- if (quote.quoteInCrypto) {
49
+ if (quote.side === common_1.Side.Sell) {
50
50
  amountCrypto = quote.amountCrypto;
51
51
  amountFiat = undefined;
52
52
  }
@@ -43,15 +43,12 @@ const getExchangeRates = (from, to, noMarkups) => __awaiter(void 0, void 0, void
43
43
  const mexicoCityTime = new Date(now.toLocaleString("en-US", { timeZone: "America/Mexico_City" }));
44
44
  const hours = mexicoCityTime.getHours();
45
45
  const minutes = mexicoCityTime.getMinutes();
46
- console.log("conversion rate", conversionRate);
47
46
  if ((hours === 15 && minutes >= 45) ||
48
47
  (hours > 15 && hours < 24) ||
49
48
  (hours === 0 && minutes === 0)) {
50
- console.log("1");
51
49
  conversionRateWithMarkups = conversionRate * 0.997;
52
50
  }
53
51
  else if (hours >= 0 && hours < 7) {
54
- console.log("@");
55
52
  conversionRateWithMarkups = conversionRate * 0.996;
56
53
  }
57
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1295",
3
+ "version": "1.0.1297",
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.1170",
30
+ "@riocrypto/common": "^1.0.1174",
31
31
  "@types/express": "^4.17.13",
32
32
  "axios": "^0.27.2",
33
33
  "ccxt": "^3.0.30",