@riocrypto/common-server 1.0.2862 → 1.0.2863

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.
@@ -247,6 +247,8 @@ class BinanceClient {
247
247
  return { coin: "USDT", network: "TRX" };
248
248
  case common_1.Crypto.USDTBSC:
249
249
  return { coin: "USDT", network: "BSC" };
250
+ case common_1.Crypto.USDTSolana:
251
+ return { coin: "USDT", network: "SOL" };
250
252
  case common_1.Crypto.ETH:
251
253
  return { coin: "ETH", network: "ETH" };
252
254
  case common_1.Crypto.TRON:
@@ -43,6 +43,7 @@ class CoincoverClient {
43
43
  [common_1.Crypto.USDTPolygon]: "tether",
44
44
  [common_1.Crypto.USDTTron]: "tether",
45
45
  [common_1.Crypto.USDTBSC]: "tether",
46
+ [common_1.Crypto.USDTSolana]: "tether",
46
47
  [common_1.Crypto.USDC]: "usd-coin",
47
48
  [common_1.Crypto.USDCPolygon]: "usd-coin",
48
49
  [common_1.Crypto.USDCStellar]: "usd-coin",
@@ -243,6 +243,7 @@ class FireblocksClient {
243
243
  common_1.Crypto.USDTPolygon,
244
244
  common_1.Crypto.USDTTron,
245
245
  common_1.Crypto.USDTBSC,
246
+ common_1.Crypto.USDTSolana,
246
247
  ].includes(asset.id)) {
247
248
  balance += Number(asset.available || 0);
248
249
  }
@@ -275,6 +276,7 @@ class FireblocksClient {
275
276
  common_1.Crypto.USDTPolygon,
276
277
  common_1.Crypto.USDTTron,
277
278
  common_1.Crypto.USDTBSC,
279
+ common_1.Crypto.USDTSolana,
278
280
  ].includes(asset.id)) {
279
281
  balance += Number(asset.available);
280
282
  }
@@ -322,6 +324,7 @@ class FireblocksClient {
322
324
  common_1.Crypto.USDTPolygon,
323
325
  common_1.Crypto.USDTTron,
324
326
  common_1.Crypto.USDTBSC,
327
+ common_1.Crypto.USDTSolana,
325
328
  ];
326
329
  if (filterList.includes(asset.id)) {
327
330
  balance += Number(asset.available);
@@ -7,7 +7,7 @@ const getNetworkFees = (crypto, conversionRateToUSD) => {
7
7
  if (crypto === common_1.Crypto.USDTTron) {
8
8
  withdrawFeeInUSD = 3;
9
9
  }
10
- else if (crypto === common_1.Crypto.USDCSolana || crypto === common_1.Crypto.EURCSolana) {
10
+ else if (crypto === common_1.Crypto.USDCSolana || crypto === common_1.Crypto.EURCSolana || crypto === common_1.Crypto.USDTSolana) {
11
11
  withdrawFeeInUSD = 0.01;
12
12
  }
13
13
  else if (crypto === common_1.Crypto.USDCPolygon) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2862",
3
+ "version": "1.0.2863",
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.2668",
31
+ "@riocrypto/common": "1.0.2671",
32
32
  "@slack/web-api": "^7.15.0",
33
33
  "@types/express": "^4.17.25",
34
34
  "axios": "1.16.0",