@pioneer-platform/pioneer-router 8.4.89 → 8.4.91

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.
Files changed (2) hide show
  1. package/lib/index.js +6 -6
  2. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -131,7 +131,7 @@ module.exports = {
131
131
  NetworksByIntegration['rango'] = rango.networkSupport();
132
132
  NetworksByIntegration['osmosis'] = osmosis.networkSupport();
133
133
  NetworksByIntegration['uniswap'] = uniswap.networkSupport();
134
- NetworksByIntegration['across'] = across.networkSupport();
134
+ // NetworksByIntegration['across'] = across.networkSupport()
135
135
  NetworksByIntegration['chainflip'] = chainflip.networkSupport();
136
136
  //get assets
137
137
  AssetsByIntegration['mayachain'] = mayachain.assetSupport();
@@ -358,7 +358,7 @@ var get_pro_rate_usd = function () {
358
358
  };
359
359
  function get_quote(quote) {
360
360
  return __awaiter(this, void 0, void 0, function () {
361
- var tag, sellChain, buyChain, integrations, quotes, _i, integrations_1, integration, supportedNetworks, integrationQuotes, i, integrationQuote, sellAssetValueUsd, buyAssetValueUsd, proTokenEarned, _a, _b, err_1;
361
+ var tag, sellChain, buyChain, integrations, quotes, _i, integrations_1, integration, supportedAssets, integrationQuotes, i, integrationQuote, sellAssetValueUsd, buyAssetValueUsd, proTokenEarned, _a, _b, err_1;
362
362
  return __generator(this, function (_c) {
363
363
  switch (_c.label) {
364
364
  case 0:
@@ -381,10 +381,10 @@ function get_quote(quote) {
381
381
  case 2:
382
382
  if (!(_i < integrations_1.length)) return [3 /*break*/, 9];
383
383
  integration = integrations_1[_i];
384
- supportedNetworks = NetworksByIntegration[integration];
385
- log.info(tag, integration + " supportedNetworks: ", supportedNetworks);
386
- if (!(supportedNetworks.includes(sellChain) && supportedNetworks.includes(buyChain))) return [3 /*break*/, 8];
387
- console.log(TAG, "Found supported integration for both networks:", integration);
384
+ supportedAssets = AssetsByIntegration[integration];
385
+ log.info(tag, integration + " supportedAssets: ", supportedAssets);
386
+ if (!(supportedAssets.includes(quote.sellAsset.caip) && supportedAssets.includes(quote.buyAsset.caip))) return [3 /*break*/, 8];
387
+ console.log(TAG, "Found supported integration for both assets:", integration);
388
388
  return [4 /*yield*/, get_quote_from_integration(integration, quote)];
389
389
  case 3:
390
390
  integrationQuotes = _c.sent();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pioneer-platform/pioneer-router",
3
- "version": "8.4.89",
3
+ "version": "8.4.91",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "scripts": {
@@ -22,12 +22,12 @@
22
22
  "dependencies": {
23
23
  "@pioneer-platform/across-client": "^0.0.2",
24
24
  "@pioneer-platform/chainflip-client": "^0.0.9",
25
- "@pioneer-platform/changelly-client": "^8.3.18",
25
+ "@pioneer-platform/changelly-client": "^8.3.19",
26
26
  "@pioneer-platform/mayachain-client": "^0.0.36",
27
27
  "@pioneer-platform/osmosis-client": "^0.0.15",
28
28
  "@pioneer-platform/pioneer-caip": "^9.2.26",
29
29
  "@pioneer-platform/pro-token": "^0.0.3",
30
- "@pioneer-platform/rango-client": "^8.3.21",
30
+ "@pioneer-platform/rango-client": "^8.3.22",
31
31
  "@pioneer-platform/thorswap-client": "^8.3.11",
32
32
  "@pioneer-platform/uniswap-client": "^0.0.27",
33
33
  "@uniswap/sdk-core": "^4.2.0",