I am working through extracting price series from Uniswap V3 pools.
I am following the previously discussed method of using ticks to get the price. Most of the time it works without an issue but I noticed there are some odd trades where you get weird numbers.
For an example looking at sUSD-WETH pool, here is a transaction. In it 312.39 sUSD is converted to 0.0917 WETH.
If I simply divide the amounts I get that price of 1 WETH is approximately 3406.65 sUSD which makes sense.
However, if I follow the formula of 1.0001 ** tick * (10 ** (difference in decimals))
I get 1 WETH is 3.4025681E+38 sUSD which is rather odd. Does anyone know why this happens?
sUSD address: 0x57ab1ec28d129707052df4df418d58a2d46d5f51
wETH address: 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2
V3 Pool: 0x6e2a6e92d1c0df4fbf7b35e9aebf2e681c9e6f5f
TX hash: 0x47ce367f7c5321dcf4059cf9feaefe6a9d6d0c52fc30b879cee25fa21eedc0c5`