From 890dab52bb8a6bd19858e36d7ed4e9e2ae011402 Mon Sep 17 00:00:00 2001 From: liquid-8 Date: Sun, 9 Jun 2024 22:17:29 +0300 Subject: [PATCH] 1 --- uniswap/uniswap4.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uniswap/uniswap4.py b/uniswap/uniswap4.py index a9193ff..fcda017 100644 --- a/uniswap/uniswap4.py +++ b/uniswap/uniswap4.py @@ -600,7 +600,7 @@ def settle( def take( self, currency0: Union[AddressLike, str, None], - to: AddressLike, + to: Union[AddressLike, str, None], qty: int, gas: Optional[Wei] = None, max_fee: Optional[Wei] = None, @@ -775,7 +775,7 @@ def get_token(self, address: AddressLike, abi_name: str = "erc20") -> ERC20Token symbol = _symbol return ERC20Token(symbol, address, name, decimals) - def get_pool_id(self, currency0: str, currency1: str, fee : int, tickSpacing : int, hooks : Union[AddressLike, str, None] = NOHOOK_ADDRESS) -> bytes: + def get_pool_id(self, currency0: Union[AddressLike, str, None], currency1: Union[AddressLike, str, None], fee : int, tickSpacing : int, hooks : Union[AddressLike, str, None] = NOHOOK_ADDRESS) -> bytes: if int(currency0, 16) > int(currency1, 16): currency0 , currency1 = currency1 , currency0 pool_id = bytes(self.w3.solidity_keccak(["address", "address", "int24", "int24", "address"], [(currency0, currency1, fee, tickSpacing, hooks)]))