From b8a7f0c355d1124d6d50dcd7d86ac921e0434ada Mon Sep 17 00:00:00 2001 From: Alexander Date: Tue, 9 Jul 2024 11:31:36 -0400 Subject: [PATCH] added verbosity --- bot-buyer.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bot-buyer.py b/bot-buyer.py index a50e043..280db1f 100755 --- a/bot-buyer.py +++ b/bot-buyer.py @@ -83,6 +83,10 @@ while True: slippage_percent ): logging.info("Swapped {} PLS to pDAI".format(buy_with_amount_pls)) + else: + logging.info("pDAI is not within range to buy yet ({}%)".format(buy_percent_diff_pdai)) + else: + logging.info("pDAI is not cheaper than AFFECTION™ yet".format(buy_percent_diff_pdai)) # check if the pusdc price is cheaper than affection price if pusdc_sample_result < affection_sample_result: @@ -107,6 +111,11 @@ while True: slippage_percent ): logging.info("Swapped {} PLS to pUSDC".format(buy_with_amount_pls)) + else: + logging.info("pUSDC is not within range to buy yet ({}%)".format(buy_percent_diff_pusdc)) + else: + logging.info("pUSDC is not cheaper than AFFECTION™ yet".format(buy_percent_diff_pdai)) # wait before next loop log_end_loop(loop_delay) +