added verbosity
This commit is contained in:
parent
24cdde2df2
commit
b8a7f0c355
1 changed files with 9 additions and 0 deletions
|
|
@ -83,6 +83,10 @@ while True:
|
||||||
slippage_percent
|
slippage_percent
|
||||||
):
|
):
|
||||||
logging.info("Swapped {} PLS to pDAI".format(buy_with_amount_pls))
|
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
|
# check if the pusdc price is cheaper than affection price
|
||||||
if pusdc_sample_result < affection_sample_result:
|
if pusdc_sample_result < affection_sample_result:
|
||||||
|
|
@ -107,6 +111,11 @@ while True:
|
||||||
slippage_percent
|
slippage_percent
|
||||||
):
|
):
|
||||||
logging.info("Swapped {} PLS to pUSDC".format(buy_with_amount_pls))
|
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
|
# wait before next loop
|
||||||
log_end_loop(loop_delay)
|
log_end_loop(loop_delay)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue