Skip to main content

Route

The Route entity represents one or more ordered DMM pools with a specified path from input token to output token.

Sourec code

constructor(pairs: Pair[], input: Token)

Properties#

pools#

The ordered pools that the route is comprised of.

pairs: Pair[]

path#

The trade path from input token to output token.

path: Token[]

input#

The input token.

input: string

output#

The output token.

output: string

midPrice#

Returns the current mid price along the route.

midPrice: Price