@syncswap/sdk
Version:
SyncSwap TypeScript SDK for building DeFi applications
12 lines • 858 B
TypeScript
import { BigNumber } from "ethers";
import { BestPathsWithAmounts, Path } from "./types";
export declare function getRoutePools(userAccount: string, // using 0x1 by default
tokenA: string, tokenB: string, routerCommonBasesTokens: string[]): Promise<import("./types").RoutePools | null>;
export declare abstract class SwapRouter {
static latestRouteTimestamp: number;
static routeTimestamp(): number;
}
export declare function findAllPossiblePaths(tokenIn: string, ts: number, amountIn?: BigNumber): Path[];
export declare function filterPathsToUseExactIn(paths: Path[], tokenIn: string, amountIn: BigNumber, ts: number, enableSplits?: boolean): Promise<Path[]>;
export declare function findBestAmountsForPathsExactIn(paths: Path[], amountIn: BigNumber, ts: number, tokenOut: string): Promise<BestPathsWithAmounts>;
//# sourceMappingURL=index.d.ts.map