Uniswap / v3-sdk

🛠 An SDK for building applications on top of Uniswap V3
MIT License
544 stars 416 forks source link

works well using trade to swap token0 to token1 but error with swap from token1 to token0 #155

Open James1847 opened 1 year ago

James1847 commented 1 year ago

Just use the uniswap v3 pool -> USDT-WETH pool as an example, If I want to know the WETH-> USDT price impact and amoutOut I can use the sdk to work it out, but If I want to know USDT-> WETH, I get wrong messages

Florian-S-A-W commented 1 year ago

Hi @James1847

What exactly is the wrong message you are getting from the SDK? How did you initialize the Pool?