@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.
- package/dist/router-sdk.cjs.development.js +3 -2
- 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 +3 -2
- package/dist/router-sdk.esm.js.map +1 -1
- package/dist/utils/encodeMixedRouteToPath.d.ts +2 -1
- package/package.json +1 -1
package/dist/router-sdk.esm.js
CHANGED
|
@@ -1871,10 +1871,11 @@ var Trade = /*#__PURE__*/function () {
|
|
|
1871
1871
|
* Converts a route to a hex encoded path
|
|
1872
1872
|
* @notice only supports exactIn route encodings
|
|
1873
1873
|
* @param route the mixed path to convert to an encoded path
|
|
1874
|
+
* @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.
|
|
1874
1875
|
* @returns the exactIn encoded path
|
|
1875
1876
|
*/
|
|
1876
|
-
function encodeMixedRouteToPath(route) {
|
|
1877
|
-
var containsV4Pool = route.pools.some(function (pool) {
|
|
1877
|
+
function encodeMixedRouteToPath(route, useMixedRouterQuoteV2) {
|
|
1878
|
+
var containsV4Pool = useMixedRouterQuoteV2 != null ? useMixedRouterQuoteV2 : route.pools.some(function (pool) {
|
|
1878
1879
|
return pool instanceof Pool;
|
|
1879
1880
|
});
|
|
1880
1881
|
var path;
|