You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.
Hi,
When I import const { Pair, TokenAmount } = require('@uniswap/v3-sdk'); in my JS file, and attempt to perform console.log("Pair", Pair); it returns undefined.
I have correctly updated npm and reinstalled @uniswap/v3-sdk packages correctly.
What else could I do to resolve this problem?
Thank you
The text was updated successfully, but these errors were encountered:
The v3-sdk does not export Pair or TokenAmount. Pair is a class that represents Uniswap V2 Pairs in the v2-sdk and TokenAmount was a class that was used in the uniswap-sdk which was renamed v2-sdk in 2021. The class has been removed and was reimplemented and updated as CurrencyAmount in the sdk-core.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
When I import const { Pair, TokenAmount } = require('@uniswap/v3-sdk'); in my JS file, and attempt to perform console.log("Pair", Pair); it returns undefined.
I have correctly updated npm and reinstalled @uniswap/v3-sdk packages correctly.
What else could I do to resolve this problem?
Thank you
The text was updated successfully, but these errors were encountered: