Degen Code

Degen Code

Smart Contract Arbitrage — Two-Pool Flash Swap

Be Cool, Balance the Pool

Mar 12, 2022
∙ Paid

The simplest form of smart contract arbitrage is the two-pool flash swap. It’s a good introduction because it’s relatively uncomplicated. On Avalanche there are three major DEX: TraderJoe, Pangolin, and SushiSwap. Each DEX has several thousand pools with two tokens, and these pools are all forked from Uniswap V2 so our calculations and helper functions …

User's avatar

Continue reading this post for free, courtesy of BowTiedDevil.

Or purchase a paid subscription.
© 2026 BowTiedDevil · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture