Optimization ideas come to me at odd times — in the shower, sitting in traffic, trying to fall sleep, during the morning standup, etc.
I typically write them down, code them up and put them to git without much fanfare.
But some of these are pretty neat and discussing them may give readers deeper insight into how all this stuff works.
So I’m going to write about them more regularly instead of just silently making degenbot better and assuming people notice.
A Brief Review of Uniswap V3 Swap Step Computation
I reviewed the Uniswap V3 Pool Contract and then illustrated how its swap calculations worked in a three part series. If you don’t know what “tick” or “square root price” means in the context of a liquidity pool, you should review them.