Static
getGet the default options for generating trade routes.
Default options for generating trade routes.
Static
getGet the default options for selecting a route from a list of generated routes.
Default options for selecting a route from a list of generated routes.
Static
getCalculate 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%)
Static
getGet 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.
Static
selectSelects the best executable route from a list of routes using the current execution environment. The wallet support type, available ATA accounts, existence 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.
A selection of utility functions for the WhirlpoolRouter.
Deprecated
WhirlpoolRouter will be removed in the future release. Please use endpoint which provides qoutes.