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 …

Keep reading with a 7-day free trial

Subscribe to Degen Code to keep reading this post and get 7 days of free access to the full post archives.

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