v3-periphery icon indicating copy to clipboard operation
v3-periphery copied to clipboard

IUniswapV3PoolState.ticks(uint24 tick) always returns zero - why?

Open chinyasuhail opened this issue 2 years ago • 3 comments

IUniswapV3PoolState.ticks(tick) returns zero - why?

https://docs.uniswap.org/protocol/reference/core/interfaces/pool/IUniswapV3PoolState

chinyasuhail avatar Apr 19 '22 08:04 chinyasuhail

Hi! We're going to need more information to answer this question I'm afraid - what pool are you trying to look at? This function does not always return 0

hensha256 avatar Aug 11 '22 11:08 hensha256

WETH/USDC(0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640)always return 0, below is the snapshot

image

byhashdong avatar Nov 06 '22 03:11 byhashdong

WETH/USDC(0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640)always return 0, below is the snapshot

image

it's returning 0's and false because it's not rounded to the value of the tickSpacing. the tick index supplied to the functions.ticks must be in the multiples of the tickSpacing value

SafeSwap1 avatar Mar 22 '23 07:03 SafeSwap1