I am new to the SDK and there are a few things I don't really understand.
Maybe someone can help.
I am facing a lot of pairs there the SDK just can't calculate the Output Amount.
I always get an Output Amount of 0.
What's the problem? From my understanding, the SDK implements the same logic as the smart contracts that are running life, so i the question rises why the SDK isn't able to calculate the amount.
Example code that gives 0: (Fill the imports, i removed them cause i work with the SDK locally)
`
import { ethers } from "ethers";
import { Pool } from
import { TickMath } from
import { nearestUsableTick } from
import { CurrencyAmount, Token } from
import { abi as IUniswapV3PoolABI } from
import JSBI from "jsbi";
Hello guys,
I am new to the SDK and there are a few things I don't really understand. Maybe someone can help. I am facing a lot of pairs there the SDK just can't calculate the Output Amount. I always get an Output Amount of 0. What's the problem? From my understanding, the SDK implements the same logic as the smart contracts that are running life, so i the question rises why the SDK isn't able to calculate the amount.
Example code that gives 0: (Fill the imports, i removed them cause i work with the SDK locally)
` import { ethers } from "ethers"; import { Pool } from import { TickMath } from import { nearestUsableTick } from import { CurrencyAmount, Token } from import { abi as IUniswapV3PoolABI } from import JSBI from "jsbi";
`