one_delta.utils

Documentation for eth_defi.one_delta.utils Python module.

1delta helper functions.

Functions

encode_path(*, path, fees, operation, ...[, ...])

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

encode_quoter_path(*, path, fees, exchanges)

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

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

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

encode_quoter_path(*, path, fees, exchanges)

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

Read more.

Parameters
Returns

Encoded bytes to be used with 1delta quoter

Return type

bytes