Skip to content

Commit b25b0ac

Browse files
committed
docs: added docstring
1 parent d982517 commit b25b0ac

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎uniswap/util.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,9 @@ def _load_contract_erc20(w3: Web3, address: AddressLike) -> Contract:
5454

5555

5656
def _encode_path(token_in: AddressLike, route: List[Tuple[int, AddressLike]]) -> bytes:
57+
"""
58+
Needed for multi-hop swaps in V3.
59+
60+
https://github.com/Uniswap/uniswap-v3-sdk/blob/1a74d5f0a31040fec4aeb1f83bba01d7c03f4870/src/utils/encodeRouteToPath.ts
61+
"""
5762
raise NotImplementedError

0 commit comments

Comments
 (0)