Currently when an orderbook path is traded it gets added to the cdPaths array to cooldown. After this period, it should be removed from the cdPaths array and added again to the orderbookPaths array to calculate arbitrage from again. However, this system is not built correctly and results in an undefined value being added to the paths array and therefore the crash of the bot.
Currently when an orderbook path is traded it gets added to the cdPaths array to cooldown. After this period, it should be removed from the cdPaths array and added again to the orderbookPaths array to calculate arbitrage from again. However, this system is not built correctly and results in an undefined value being added to the paths array and therefore the crash of the bot.