@galacticcouncil/sdk 0.0.1-beta.14 → 0.0.1-beta.15
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.esm.js +1 -1
- package/dist/index.esm.js.map +3 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +3 -3
- package/dist/types/api/tradeRouter.d.ts +7 -0
- package/package.json +1 -1
|
@@ -18,6 +18,13 @@ export declare class TradeRouter extends Router {
|
|
|
18
18
|
* @returns Spot price for given path
|
|
19
19
|
*/
|
|
20
20
|
private getSpotPrice;
|
|
21
|
+
/**
|
|
22
|
+
* Check whether trade is direct or not
|
|
23
|
+
*
|
|
24
|
+
* @param swaps - Trade route
|
|
25
|
+
* @returns true if direct trade, otherwise false
|
|
26
|
+
*/
|
|
27
|
+
private isDirectTrade;
|
|
21
28
|
/**
|
|
22
29
|
* Calculate and return best possible sell trade for assetIn>assetOut
|
|
23
30
|
*
|