Degen Code

Degen Code

Share this post

Degen Code
Degen Code
Pool Reserves — Part II: Partial Swaps, Max Profits
Copy link
Facebook
Email
Notes
More

Pool Reserves — Part II: Partial Swaps, Max Profits

The Calculatooooooor

Jan 09, 2022
∙ Paid
33

Share this post

Degen Code
Degen Code
Pool Reserves — Part II: Partial Swaps, Max Profits
Copy link
Facebook
Email
Notes
More
15
Share

> 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…

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2025 BowTiedDevil
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share

Copy link
Facebook
Email
Notes
More