@pioneer-platform/pioneer-router 8.4.89 → 8.4.90
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.
- package/lib/index.js +6 -6
- package/package.json +1 -1
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,
|
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
|
-
|
385
|
-
log.info(tag, integration + "
|
386
|
-
if (!(
|
387
|
-
console.log(TAG, "Found supported integration for both
|
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();
|