Mempool Arbitrage Improvements — Multi-pool Prediction
Too Cool for Two Pools
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.