And i'm getting errors on the properties tokenAand tokenB from that method. It's complaning that the new Token instance i'm creating and using as param is missing properties isNative, isToken, and wrapped.
You need to use @uniswap/v2-sdk and @uniswap/sdk-core instead of @uniswap/sdk. The package you are using is an old version of the v2-sdk that was deprecated when Uniswap v3 was released.
I have this method in a class:
And i'm getting errors on the properties
tokenA
andtokenB
from that method. It's complaning that the newToken
instance i'm creating and using as param is missing propertiesisNative
,isToken
, andwrapped
.How to reproduce:
Use these versions in a node project:
Run a class like this: