Skip to main content

UniswapExchangeRateTask

Fetch the swap price from UniSwap.


Fields

NameTypeDescription
 factoryAddress

string

 inTokenAddress

string

The input token address.

 inTokenAmount

double

The amount of tokens to swap.

 outTokenAddress

string

The output token address.

 provider

string

The RPC provider to use for the swap.

 quoterAddress

string

 routerAddress

string

 slippage

double

The allowable slippage in percent for the swap.

 version

The version of the Uniswap exchange to use.

Enums

 Version

ValueNameDescription
 0VERSION_V2_DEPRECATED
 1VERSION_V3_DEPRECATED
 2VERSION_V2
 3VERSION_V3