UNPKG

@pangolindex/sdk

Version:

🛠 An SDK for building applications on top of Pangolin.

27 lines (26 loc) • 847 B
import { Currency, Price, Token } from '../../entities'; import { ElixirPool } from './pool'; /** * Represents a list of pools through which a swap can occur */ export declare class ElixirRoute { readonly pools: ElixirPool[]; readonly path: Token[]; readonly input: Currency; readonly inputWrapped: Token; readonly output: Currency; readonly outputWrapped: Token; private _midPrice; /** * Creates an instance of route. * @param pools An array of `ElixirPool` objects, ordered by the route the swap will take * @param input The input token * @param output The output token */ constructor(pools: ElixirPool[], input: Currency, output: Currency); get chainId(): number; /** * Returns the mid price of the route */ get midPrice(): Price; }