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

Move logging of repetitively generated messages to dedicated section #75

Closed SirTLB closed 8 months ago

SirTLB commented 1 year ago

At the moment we are creating logging messages at multiple places in the code, mostly in the Loop - types. We want to be able to call a function that either creates the logmessage for us and even sends it. Instead of fully creating a 'skip logging message' like we do now, we simply want to call 'createSkipLogResult( res: SkipResult ) and this function handles it for us. This will greatly increase readability of the code.