Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Both Amount0In and Amount0Out Present in Logs #184

Open
azaidelson opened this issue Feb 13, 2023 · 0 comments
Open

Both Amount0In and Amount0Out Present in Logs #184

azaidelson opened this issue Feb 13, 2023 · 0 comments

Comments

@azaidelson
Copy link

In a lot of cases (over 6 million since inception), the UniswapV2Pair swap event is emitted with both Amount0In and Amount0Out greater than zero.

Examples:

  1. https://etherscan.io/tx/0xb91c8441ab08cd612225b4ded46054ce0a48f1e07347995ef22a4cc552c18895, log_index 69
  2. https://etherscan.io/tx/0x39b259e1ece6da2d865003875ff841cba963836458fac1bb253bb2365bcd6767, log_index 148

What does the amount0In log mean in this case?
In addition, there is sometimes a mismatch between the AmounOut in the log, and the amount of token that is transferred to the next step in the route. In example 2, the amount transferred is 8755596609890 (log_index 146), while the amount_out is 9216417484093 (log_index 148).

Is there a bug in the logging mechanism?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant