Degen Code

Degen Code

Share this post

Degen Code
Degen Code
Mempool Arbitrage Improvements — Multi-pool Prediction

Mempool Arbitrage Improvements — Multi-pool Prediction

Too Cool for Two Pools

Jul 20, 2022
∙ Paid
8

Share this post

Degen Code
Degen Code
Mempool Arbitrage Improvements — Multi-pool Prediction
Share

I have made several improvements to the degenbot code base.

Earlier versions of the mempool bot were limited. First I wrote about mempool arbitrage between CRA-WAVAX LPs only, then I extended the functionality to support any two tokens. The mempool prediction code block was limited by a rather significant simplification:

The earlier code base only supported overriding the token reserves in the borrowing pool!

This meant that if I built an arbitrage path of the form CRA/WAVAX → CRA/TUS → TUS/WAVAX, I could only attack mempool transactions of the outer pairs (either CRA/WAVAX or TUS/WAVAX). If I observed a mempool transaction in the CRA/TUS pool, I had no clean way of using the future reserves to calculate arbitrage opportunity.

Well, not anymore! The degenbot code base now allows me to provide an arbitrary number of token reserve overrides to my arbitrage helper classes.

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