ValuationQuoter
Documentation for eth_defi.vault.valuation.ValuationQuoter Python class.
- class ValuationQuoter[source]
Handle asset valuation on a specific DEX/quoter.
Takes in source and target tokens as input and generate all routing path combinations
Creates routes to a specific DEX
Each DEX has its own quoter contract we need to integrate
Resolves the onchain Solidity function return value to a token amount we get
Methods summary
__init__
([debug])create_multicall_wrapper
(route, amount_in)dex_hint
()Return string id used to identify this DEX.
format_path
(route)Get human-readable route path line.
generate_routes
(source_token, target_token, ...)handle_onchain_return_value
(route, ...)- abstract format_path(route)[source]
Get human-readable route path line.
- Parameters
route (eth_defi.vault.valuation.Route) –
- Return type