@riocrypto/common-server 1.0.2825 → 1.0.2827

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.
@@ -245,12 +245,16 @@ class BinanceClient {
245
245
  return { coin: "USDT", network: "MATIC" };
246
246
  case common_1.Crypto.USDTTron:
247
247
  return { coin: "USDT", network: "TRX" };
248
+ case common_1.Crypto.USDTBNB:
249
+ return { coin: "USDT", network: "BNB" };
248
250
  case common_1.Crypto.ETH:
249
251
  return { coin: "ETH", network: "ETH" };
250
252
  case common_1.Crypto.TRON:
251
253
  return { coin: "TRX", network: "TRX" };
252
254
  case common_1.Crypto.SOL:
253
255
  return { coin: "SOL", network: "SOL" };
256
+ case common_1.Crypto.BNB:
257
+ return { coin: "BNB", network: "BNB" };
254
258
  default:
255
259
  return null;
256
260
  }
@@ -42,6 +42,7 @@ class CoincoverClient {
42
42
  [common_1.Crypto.USDTEthereum]: "tether",
43
43
  [common_1.Crypto.USDTPolygon]: "tether",
44
44
  [common_1.Crypto.USDTTron]: "tether",
45
+ [common_1.Crypto.USDTBNB]: "tether",
45
46
  [common_1.Crypto.USDC]: "usd-coin",
46
47
  [common_1.Crypto.USDCPolygon]: "usd-coin",
47
48
  [common_1.Crypto.USDCStellar]: "usd-coin",
@@ -52,6 +53,7 @@ class CoincoverClient {
52
53
  [common_1.Crypto.EURCSolana]: "euro-coin",
53
54
  [common_1.Crypto.EURCBase]: "euro-coin",
54
55
  [common_1.Crypto.TRON]: "tron",
56
+ [common_1.Crypto.BNB]: "binancecoin",
55
57
  [common_1.Crypto.SOL]: "solana",
56
58
  [common_1.Crypto.XLM]: "stellar",
57
59
  [common_1.Crypto.POL]: "matic-network",
@@ -241,6 +241,7 @@ class FireblocksClient {
241
241
  common_1.Crypto.USDTEthereum,
242
242
  common_1.Crypto.USDTPolygon,
243
243
  common_1.Crypto.USDTTron,
244
+ common_1.Crypto.USDTBNB,
244
245
  ].includes(asset.id)) {
245
246
  balance += Number(asset.available || 0);
246
247
  }
@@ -272,6 +273,7 @@ class FireblocksClient {
272
273
  "USD",
273
274
  common_1.Crypto.USDTPolygon,
274
275
  common_1.Crypto.USDTTron,
276
+ common_1.Crypto.USDTBNB,
275
277
  ].includes(asset.id)) {
276
278
  balance += Number(asset.available);
277
279
  }
@@ -318,6 +320,7 @@ class FireblocksClient {
318
320
  "USDT",
319
321
  common_1.Crypto.USDTPolygon,
320
322
  common_1.Crypto.USDTTron,
323
+ common_1.Crypto.USDTBNB,
321
324
  ];
322
325
  if (filterList.includes(asset.id)) {
323
326
  balance += Number(asset.available);
@@ -22,6 +22,9 @@ const getNetworkFees = (crypto, conversionRateToUSD) => {
22
22
  else if (crypto === common_1.Crypto.USDC || crypto === common_1.Crypto.USDTEthereum || crypto === common_1.Crypto.EURCEthereum) {
23
23
  withdrawFeeInUSD = 5;
24
24
  }
25
+ else if (crypto === common_1.Crypto.USDTBNB) {
26
+ withdrawFeeInUSD = 0.01;
27
+ }
25
28
  else {
26
29
  withdrawFeeInUSD = 0.01;
27
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2825",
3
+ "version": "1.0.2827",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "@google-cloud/secret-manager": "^5.6.0",
29
29
  "@google-cloud/storage": "^7.19.0",
30
30
  "@hyperdx/node-opentelemetry": "^0.10.3",
31
- "@riocrypto/common": "1.0.2619",
31
+ "@riocrypto/common": "1.0.2624",
32
32
  "@slack/web-api": "^7.15.0",
33
33
  "@types/express": "^4.17.25",
34
34
  "axios": "1.16.0",