From 1a8199911ecece3c2e3c51ad54fa724a795eade8 Mon Sep 17 00:00:00 2001 From: liquid-8 Date: Thu, 6 Jun 2024 02:42:25 +0300 Subject: [PATCH] 123 --- uniswap/uniswap4.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/uniswap/uniswap4.py b/uniswap/uniswap4.py index 6babcaa8..6344f624 100644 --- a/uniswap/uniswap4.py +++ b/uniswap/uniswap4.py @@ -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 @@ -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, @@ -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,