Skip to main content

Type alias: RequestTradeInput

RequestTradeInput = object & SwapAmount

The pool a RequestTrade trades in, its fee tier, the uniqueKey and what is traded.

Type Declaration​

NameTypeDescription
feenumber-
token0stringCanonical pool symbols: token0 < token1. Take them from a quote verbatim.
token1string-
tokenInIsToken0booleanWhich side of the pool is sold: true when the input token is token0.
uniqueKeystring-