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/pools from routers #117

Closed SirTLB closed 8 months ago

SirTLB commented 8 months ago

Description and Motivation

This PR adds querying factories for all existing pools to the bots. It adds a few checks for the pools before they get added to the list of allPools, and pools get removed from the bot when they are not part of any Path, to save querying time. Also, this PR adds saving/reading the POOLS variable from the filesystem if present, again, to save a lot of startup-time. Finally, an environment variable called MANUAL_POOLS_ONLY is added to the botConfig (defaulting to 0) that allows users to not query the factories for all pools but only using the manually entered pools in the POOLS variable, this to allow dedicated bots for specific pools/paths.