encode_path

Documentation for eth_defi.one_delta.utils.encode_path function.

encode_path(*, path, fees, operation, exchanges, interest_mode, trade_type=TradeType.EXACT_INPUT)[source]

Encode the routing path and other info for 1delta flash swap.

Note: we don’t yet support all 1delta operations to keep this function simple.

Read more.

Parameters
Returns

Encoded bytes to be used with 1delta flash aggregator

Return type

bytes