Class: Route
Represents a list of pools through which a swap can occur
Type parameters
Name | Type | Description |
---|---|---|
TInput | extends Currency | The input token |
TOutput | extends Currency | The output token |
Table of contents
Constructors
Properties
Accessors
Constructors
constructor
new Route <TInput, TOutput> (pools, input, output)
Creates an instance of route.
Type parameters
Name | Type |
---|---|
TInput | extends Currency |
TOutput | extends Currency |
Parameters
Name | Type | Description |
---|---|---|
pools | Pool [] | An array of Pool objects, ordered by the route the swap will take |
input | TInput | The input token |
output | TOutput | The output token |
Defined in
Properties
_midPrice
Private
_midPrice: null
| Price <TInput, TOutput>
= null