We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Out of the box, the v3 routing guide is not working as TypeScript complains about wrong imports.
This example for setting up the router has at least 2 issues:
import { AlphaRouter, ChainId } from '@uniswap/smart-order-router' const provider = new ethers.providers.JsonRpcProvider(rpcUrl) const router = new AlphaRouter({ chainId: ChainId.MAINNET, provider, })
ChainId
@uniswap/smart-order-router
@uniswap/sdk-core
"@uniswap/sdk-core": "^6.1.1", "@uniswap/smart-order-router": "^4.9.2"
To me it looks like @uniswap/sdk-core v6 introduced this. For now, my solution is to keep sdk-core downgraded to v5.9.0.
sdk-core
v5.9.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Out of the box, the v3 routing guide is not working as TypeScript complains about wrong imports.
This example for setting up the router has at least 2 issues:
ChainId
exported from@uniswap/smart-order-router
@uniswap/sdk-core
, TypeScript complains with "Type 'ChainId.MAINNET' is not assignable to type 'ChainId'"My versions
To me it looks like
@uniswap/sdk-core
v6 introduced this. For now, my solution is to keepsdk-core
downgraded tov5.9.0
.The text was updated successfully, but these errors were encountered: