@uniswap/router-sdk 1.21.1 → 1.21.2

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.
@@ -706,8 +706,8 @@ var MixedRouteSDK = /*#__PURE__*/function () {
706
706
  var prevPool = pools[i - 1];
707
707
  var pool = pools[i];
708
708
  var inputToken = tokenPath[i];
709
- var outputToken = pool.token0.wrapped.equals(inputToken.wrapped) ? pool.token1 : pool.token0;
710
- !isValidTokenPath(prevPool, pool, inputToken) ? invariant(false, 'PATH') : void 0;
709
+ var outputToken = pool instanceof v4Sdk.Pool ? pool.token0.equals(inputToken) ? pool.token1 : pool.token0 : pool.token0.wrapped.equals(inputToken.wrapped) ? pool.token1 : pool.token0;
710
+ !isValidTokenPath(prevPool, pool, inputToken) ? invariant(false, "PATH") : void 0;
711
711
  tokenPath.push(outputToken);
712
712
  }
713
713
  this.pools = pools;