SwapRouter
Handles the encoding of calldata for swap routing.
GitHub File: swapRouter.ts
Properties
Public
Property | Type | Modifier | Description |
---|---|---|---|
INTERFACE | static | The Application Binary Interface for the related Elastic contracts. |
Constructor
Private constructor that cannot be constructed.
Methods
swapCallParameters() - public
static
public
static
Based on the input parameters, handles the encoding of the relevant on-chain method that enables safe execution of swap routes.
Parameters
Params | Type | Description |
---|---|---|
trades | The trade to produce call parameters for. | |
options | The options for the swap operation:
|
Returns
Type | Description |
---|---|
An object containing:
|
Last updated