Consider the following swap event as listed here:
To calculate the swap price (
token1/token0)( without accounting for potential transfer tax) you would just do
amount1/amount0, and depending on buy or sell this would translate to
amount1In/amount0Out. Please let me know if I have this part wrong.
However, the above event has both amount0In and amount1In as non-zero. What does this even mean (i.e. what happened here) and how to calculate the swap price in this situation?