@uniswap/router-sdk 1.14.1 → 1.14.3
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/index.d.ts +2 -0
- package/dist/router-sdk.cjs.development.js +3 -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 -2
- package/dist/router-sdk.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -9,4 +9,6 @@ export * from './entities/route';
|
|
|
9
9
|
export * from './entities/mixedRoute/route';
|
|
10
10
|
export * from './entities/mixedRoute/trade';
|
|
11
11
|
export * from './utils/encodeMixedRouteToPath';
|
|
12
|
+
export * from './utils/TPool';
|
|
13
|
+
export * from './utils/pathCurrency';
|
|
12
14
|
export * from './utils';
|
|
@@ -655,7 +655,7 @@ function getPathCurrency(currency, pool) {
|
|
|
655
655
|
return currency.wrapped;
|
|
656
656
|
// return native currency if pool involves native version of wrapped currency (only applies to V4)
|
|
657
657
|
} else if (pool instanceof v4Sdk.Pool) {
|
|
658
|
-
if (pool.
|
|
658
|
+
if (pool.token0.wrapped.equals(currency)) {
|
|
659
659
|
return pool.token0;
|
|
660
660
|
} else if (pool.token1.wrapped.equals(currency)) {
|
|
661
661
|
return pool.token1;
|
|
@@ -2355,8 +2355,10 @@ exports.SwapRouter = SwapRouter;
|
|
|
2355
2355
|
exports.Trade = Trade;
|
|
2356
2356
|
exports.ZERO = ZERO;
|
|
2357
2357
|
exports.ZERO_PERCENT = ZERO_PERCENT;
|
|
2358
|
+
exports.amountWithPathCurrency = amountWithPathCurrency;
|
|
2358
2359
|
exports.encodeMixedRouteToPath = encodeMixedRouteToPath;
|
|
2359
2360
|
exports.getOutputOfPools = getOutputOfPools;
|
|
2361
|
+
exports.getPathCurrency = getPathCurrency;
|
|
2360
2362
|
exports.isMint = isMint;
|
|
2361
2363
|
exports.partitionMixedRouteByProtocol = partitionMixedRouteByProtocol;
|
|
2362
2364
|
exports.tradeComparator = tradeComparator;
|