First off, I'm fully aware of concentrated liquidity on Univ3. This is not a question about that.
Regardless of concentrated liquidity or not, it is my understanding that the swap price a Buyer is getting should always be lower than the price the pool ends up at after the swap, simply because you buy along a curve.
Some swaps do not seem to have this behavior. Take for instance the swap here
amount0 :-1279211354315689962871
amount1 :13000000000000000
sqrtPriceX96 :251314635170608008427270616
liquidity :43887562687655428171896
tick :-115074
Here token1 = ETH / token 0 = Party.
Someone bought 1279.21 PARTY for 0.013 ETH, which amounts to 0.013/127921 = 0.00001016251
ETH/Party
However, the price ETH/Party after the swap is lower instead of higher, as calculated by: sqrtPriceX96^2 / 2^192 = 0.000010061
.
I.e; price of pool ~1% lower after a buy, then the price the buyer got. How is this possible?