Get the default options for generating trade routes.
Default options for generating trade routes.
Get the default options for selecting a route from a list of generated routes.
Default options for selecting a a route from a list of generated routes.
Calculate the price impact for a route.
The trade the user used to derive the route.
The route to calculate the price impact for.
A Decimal object representing the percentage value of the price impact (ex. 3.01%)
Get the tick arrays addresses that are touched by a route.
The route to get the tick arrays from.
The tick arrays addresses that are touched by the route.
Selects the best executable route from a list of routes using the current execution environment. The wallet support type, available ATA accounts, existance of lookup tables all effect the transaction size and eligibility of a route.
The WhirlpoolContext that represents the current execution environment
A list of routes to select from, ordered by the best routes (trade amount wise) first.
RouteSelectOptions to configure the selection of the best route.
The best ExecutableRoute that can be used to execute a swap. If no executable route is found, null is returned.
Generated using TypeDoc
A selection of utility functions for the WhirlpoolRouter.