@mento-protocol/mento-sdk 3.3.0 → 3.4.0
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/README.md +44 -31
- package/dist/cache/routes.js +7745 -5125
- package/dist/core/types/route.d.ts +2 -1
- package/dist/esm/cache/routes.js +7745 -5125
- package/dist/esm/services/routes/RouteService.js +41 -7
- package/dist/esm/utils/pathEncoder.js +1 -1
- package/dist/esm/utils/routeUtils.js +189 -58
- package/dist/services/routes/RouteService.d.ts +4 -4
- package/dist/services/routes/RouteService.js +40 -6
- package/dist/utils/pathEncoder.d.ts +1 -1
- package/dist/utils/pathEncoder.js +1 -1
- package/dist/utils/routeUtils.d.ts +38 -14
- package/dist/utils/routeUtils.js +192 -58
- package/package.json +1 -1
|
@@ -23,7 +23,8 @@ export interface Route {
|
|
|
23
23
|
/**
|
|
24
24
|
* Array of exchange hops needed to execute the trade
|
|
25
25
|
* Length 1: Direct route (single pool)
|
|
26
|
-
* Length 2: Two-hop route via intermediate token through two pools
|
|
26
|
+
* Length 2: Two-hop route via an intermediate token through two pools
|
|
27
|
+
* Length 3: Three-hop route only when no direct or two-hop path exists
|
|
27
28
|
* Order matters for execution
|
|
28
29
|
*/
|
|
29
30
|
path: Array<Pool>;
|