From 430cff8a9c6b48f17044897d0937eaf093758b10 Mon Sep 17 00:00:00 2001 From: Alexander Date: Thu, 11 Jul 2024 14:12:04 -0400 Subject: [PATCH] send affection tokens before continuing to mint --- bot-minter.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bot-minter.py b/bot-minter.py index a9f5151..4e5a770 100755 --- a/bot-minter.py +++ b/bot-minter.py @@ -86,6 +86,13 @@ while True: logging.info("Converting {} MATH v1.1 to AFFECTION™...".format(loops * 3)) convert_tokens_multi(account, multi_affection_address, math11_address, affection_address, loops) + # transfer affection + logging.info("AFFECTION™ Balance: {:.15f}".format(affection_balance := float(round(get_token_balance(affection_address, wallet_b_address), 2)))) + if affection_balance > 1: + # send affection tokens to wallet C for selling + if send_tokens(account, affection_address, wallet_c_address, affection_balance): + logging.info("Sent {} AFFECTION™ to {}".format(affection_balance, wallet_c_address)) + # convert pdai to pi logging.info("pDAI Balance: {:.15f}".format(pdai_balance := get_token_balance(pdai_address, wallet_b_address))) if (loops := math.floor(pdai_balance / 300)) != 0: