@ring-protocol/router-sdk 0.1.30 → 0.1.32

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.
@@ -1076,10 +1076,11 @@ var MixedRouteTrade = /*#__PURE__*/function () {
1076
1076
  Protocol["MIXED"] = "MIXED";
1077
1077
  })(exports.Protocol || (exports.Protocol = {}));
1078
1078
 
1079
+ var FEWV2_UNSUPPORTED_CHAIN_IDS = [sdkCore.ChainId.POLYGON, sdkCore.ChainId.XLAYER_MAINNET];
1079
1080
  // Helper function to get the pathInput and pathOutput for a FEWV2 / V2 / V3 route
1080
1081
  // currency could be native so we check against the wrapped version as they don't support native ETH in path
1081
1082
  function getPathToken(currency, pool) {
1082
- var isSupportFewV2 = currency.chainId !== sdkCore.ChainId.POLYGON;
1083
+ var isSupportFewV2 = !FEWV2_UNSUPPORTED_CHAIN_IDS.includes(currency.chainId);
1083
1084
  if (isSupportFewV2) {
1084
1085
  var fewToken = fewV2Sdk.getFewTokenFromOriginalToken(currency.wrapped, currency.chainId);
1085
1086
  if (pool instanceof fewV2Sdk.Pair || pool instanceof v2Sdk.Pair) {