Returns all routes between given tokens with output amount.
From token.
To token.
Is exact input or output trade.
Amount of tokens to trade.
Max amount of transit tokens.
Static
getConverts uni v3 route to encoded bytes string to pass it to contract. Structure of encoded string: '0x${tokenAddress_0}${toHex(fee_0)}${tokenAddress_1}${toHex(fee_1)}...${tokenAddress_n}. toHex(fee_i) must be of length 6, so leading zeroes are added.
string Encoded string.
Liquidity pools, included in route.
From token address.
Generated using TypeDoc
Works with requests, related to Uniswap v3 liquidity pools.