> ahhhh I’m gonna derive!
Hot on the heels of the introduction to getReserves(), it’s ya boi Devil back with another equation to Make Swaps Great Again.
Partial Swaps
First, I want to give kudos to commenter Mike, who correctly guessed the reason for this post.
The previous post concluded with a long derivation and implementation of a formula to calculate t…