Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions uniswap/uniswap4.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import time
import logging
import functools
import dataclasses
from typing import List, Any, Optional, Union, Tuple, Dict

from web3 import Web3
Expand Down Expand Up @@ -215,7 +216,7 @@ def get_quote_exact_input(
:path is a swap route
"""

quote_path = [item.astulpe() for item in path]
quote_path = [dataclasses.astuple(item) for item in path]
quote_params = {
"exactCurrency": currency,
"path": quote_path,
Expand All @@ -239,7 +240,7 @@ def get_quote_exact_output(
:path is a swap route
"""

quote_path = [item.astulpe() for item in path]
quote_path = [dataclasses.astuple(item) for item in path]
quote_params = {
"exactCurrency": currency,
"path": quote_path,
Expand Down