SwapQuoter
Handles the encoding of calldata required to call the quoter contract.
GitHub File: quoter.ts
Properties
Public
Property | Type | Modifier | Description |
---|---|---|---|
INTERFACE | static | The Application Binary Interface for the related Elastic contracts. |
Methods
quoteCallParameters() - public
static
public
static
Based on the input parameters, handles the encoding of the relevant on-chain method that enables safe request for quotes.
Parameters
Params | Type | Description |
---|---|---|
route | Route<TInput, TOutput> | Array of potential pools with the same pair through which the swap can be routed. Ordered by the route the swap will take. |
amount | CurrencyAmount<TInput, TOutput> | The quote amount in either amount in or amount out. Direction is determined by the |
tradeType | The type of trade: exact in OR exact out. | |
options | Default is |
Returns
Type | Description |
---|---|
An object containing:
|
Last updated