@uniswap/router-sdk 2.0.3 → 2.0.4

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.
@@ -1875,10 +1875,11 @@ var Trade = /*#__PURE__*/function () {
1875
1875
  * Converts a route to a hex encoded path
1876
1876
  * @notice only supports exactIn route encodings
1877
1877
  * @param route the mixed path to convert to an encoded path
1878
+ * @param useMixedRouterQuoteV2 if true, uses the Mixed Quoter V2 encoding for v4 pools. By default, we do not set it. This is only used in SOR for explicit setting during onchain quoting.
1878
1879
  * @returns the exactIn encoded path
1879
1880
  */
1880
- function encodeMixedRouteToPath(route) {
1881
- var containsV4Pool = route.pools.some(function (pool) {
1881
+ function encodeMixedRouteToPath(route, useMixedRouterQuoteV2) {
1882
+ var containsV4Pool = useMixedRouterQuoteV2 != null ? useMixedRouterQuoteV2 : route.pools.some(function (pool) {
1882
1883
  return pool instanceof v4Sdk.Pool;
1883
1884
  });
1884
1885
  var path;