@dolltoken/v2-sdk
Version:
⚒️ An SDK for building applications on top of Doll V2
19 lines (18 loc) • 597 B
TypeScript
import { Currency, Price, Token } from '@dolltoken/sdk-core';
import { Pool } from './pool';
/**
* Represents a list of pools through which a swap can occur
*/
export declare class Route<TInput extends Currency, TOutput extends Currency> {
readonly pools: Pool[];
readonly tokenPath: Token[];
readonly input: TInput;
readonly output: TOutput;
private _midPrice;
constructor(pools: Pool[], input: TInput, output: TOutput);
get chainId(): number;
/**
* Returns the mid price of the route
*/
get midPrice(): Price<TInput, TOutput>;
}