Skip to content

Commit c81e84c

Browse files
committed
fix: fixed typing
1 parent 9a1318f commit c81e84c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎uniswap/uniswap.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1891,7 +1891,7 @@ def estimate_price_impact(
18911891
token_in: AddressLike,
18921892
token_out: AddressLike,
18931893
amount_in: int,
1894-
fee: Optional[int] = None,
1894+
fee: int,
18951895
route: Optional[List[AddressLike]] = None,
18961896
) -> float:
18971897
"""

‎uniswap/util.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def chunks(arr: Sequence[Any], n: int) -> Generator:
128128
yield arr[i : i + n]
129129

130130

131-
def fee_to_fraction(fee: int):
131+
def fee_to_fraction(fee: int) -> float:
132132
return fee / 1000000
133133

134134

0 commit comments

Comments
 (0)