-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Potential "Corrupt" pool. Mismatch between tick and sqrtPrice #650
Comments
I would like to work on this @NoUJoe |
@ashutosh887 Go for it! Me and you will single-handedly fix v3 between us! |
I haven't tracked down where abouts the mismatch originated from. Somewhere in UniswapV3Pool.sol contract tho |
State of the pool has changed now, but heres the swap history of the pool. Most recent swap is first { Swap where mismatch occured is bold |
this is possible in normal conditions, and not a corrupt state. |
https://bscscan.com/address/0xd32db42675c921531d4faa925e82be2c85845f6e#readContract
at time of writing:
"sqrtPrice": "76243620223535651510009976419",
"tick": "-769",
According to TickMath.getTickAtSqrtRatio(). tick should be -768. I know -769 has 69 in it but it's still incorrect (I think)
The text was updated successfully, but these errors were encountered: