encode_quoter_path

Documentation for eth_defi.one_delta.utils.encode_quoter_path function.

encode_quoter_path(*, path, fees, exchanges)[source]

Encode the routing path and other info for 1delta quoter.

Read more.

Parameters
  • path (list[eth_typing.evm.HexAddress]) – List of token addresses how to route the trade

  • fees (list) – List of trading fees of the pools in the route

  • exchanges (list[eth_defi.one_delta.constants.Exchange]) – List of exchanges to use for each hop

Returns

Encoded bytes to be used with 1delta quoter

Return type

bytes