Route

Documentation for eth_defi.vault.valuation.Route Python class.

class Route

Bases: object

One potential swap path.

  • Support paths with 2 or 3 pairs

  • Present one potential swap path between source and target

  • Routes can contain any number of intermediate tokens in the path

  • Used to ABI encode for multicall calls

Attributes summary

quoter

path

fees

address_path

dex_hint

intermediate_token

source_token

target_token

token

Methods summary

__init__(quoter, path[, fees])

get_formatted_path()

Return human readable path.

__init__(quoter, path, fees=None)
Parameters
Return type

None

get_formatted_path()

Return human readable path.

Return type

str