White-Whale-Defi-Platform / white-whale-bots

A single-chain and multi-dex arbitrage bot the utilizing White Whale flash loans and Skip Protocol.
https://whitewhale.money
MIT License
81 stars 32 forks source link

Feat/remove adapter reset on newblock #88

Closed SirTLB closed 1 year ago

SirTLB commented 1 year ago

Description and Motivation

This PR makes sure the bot does not query the accountnumber and sequence on each iteration reset. This query is delaying runtime whilst its only needed after the bot actually performed a trade. Also, a print is added that prints the TXHash of a transaction we try to backrun if there is any. This makes searching for attempts easier in the blockchain if our own arbitrage transaction fails and thus not exists.