I am using this SDK to initiate swaps. I used code according to your README.
Problem:
I am using this code to initiate swap on ETH Mainnet.
Here is the code. I was swaping ETH for USDC
const { output } = await curve.router.getBestRouteAndOutput(tokenAAdress, tokenBAddress, '0.001'); const txHash = await curve.router.swap(tokenAAdress, tokenBAddress, tradeAmount);
I am using this SDK to initiate swaps. I used code according to your README.
Problem: I am using this code to initiate swap on ETH Mainnet. Here is the code. I was swaping ETH for USDC
const { output } = await curve.router.getBestRouteAndOutput(tokenAAdress, tokenBAddress, '0.001'); const txHash = await curve.router.swap(tokenAAdress, tokenBAddress, tradeAmount);
Swaps however are working on Polygon. Issue: