Route
Documentation for eth_defi.vault.valuation.Route Python class.
- class Route
Bases:
objectOne 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
What router we use
What route path we take
Fees between pools for Uni v3
address_pathdex_hintfunction_signature_stringintermediate_tokensource_tokentarget_tokentokenMethods summary
__init__(quoter, path[, fees])Return human readable path.
- quoter: eth_defi.vault.valuation.ValuationQuoter
What router we use
- path: tuple[eth_defi.token.TokenDetails, eth_defi.token.TokenDetails] | tuple[eth_defi.token.TokenDetails, eth_defi.token.TokenDetails, eth_defi.token.TokenDetails]
What route path we take
- get_formatted_path()
Return human readable path.
- Return type
- __init__(quoter, path, fees=None)
- Parameters
- Return type
None