@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.
- package/dist/router-sdk.cjs.development.js +2 -1
- package/dist/router-sdk.cjs.development.js.map +1 -1
- package/dist/router-sdk.cjs.production.min.js +1 -1
- package/dist/router-sdk.cjs.production.min.js.map +1 -1
- package/dist/router-sdk.esm.js +2 -1
- package/dist/router-sdk.esm.js.map +1 -1
- package/package.json +6 -6
|
@@ -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
|
|
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) {
|