You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.
Right now, the current logic is getting the amount_0 and amount_1 from log_data[1]. This is incorrect as the amount_0 should be retrieved from log_data[0]. All logic used to sync pools from logs should be checked and updated. Additionally, logic decoding logs should ensure that indexed arguments are handled correctly and not assumed to be in log data.
Yeh I also found a couple issues with this function as well, I will see if I can fix it and make a PR. I fixed most of it but I cant seem to get the tick value on any log that I decode with the topic of "Swap(address,address,int256,int256,uint160,uint128,int24)"
Right now, the current logic is getting the
amount_0
andamount_1
fromlog_data[1]
. This is incorrect as theamount_0
should be retrieved fromlog_data[0]
. All logic used to sync pools from logs should be checked and updated. Additionally, logic decoding logs should ensure that indexed arguments are handled correctly and not assumed to be in log data.Snippet for reference
The text was updated successfully, but these errors were encountered: