From e4d73047b4e4399afede3f52d0a5eea6b92debe7 Mon Sep 17 00:00:00 2001 From: Alexander Date: Tue, 10 Sep 2024 19:53:45 -0400 Subject: [PATCH] fixed affection transfer amounts to whole numbers only --- bot-minter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot-minter.py b/bot-minter.py index ce5dccc..f807802 100755 --- a/bot-minter.py +++ b/bot-minter.py @@ -50,7 +50,7 @@ while True: logging.info("PLS Balance: {:.15f}".format(pls_balance := get_pls_balance(account.address))) # transfer affection - logging.info("AFFECTION™ Balance: {:.15f}".format(affection_balance := float(round(get_token_balance(affection_address, wallet_b_address), 2)))) + logging.info("AFFECTION™ Balance: {:.15f}".format(affection_balance := math.floor(get_token_balance(affection_address, wallet_b_address)))) if affection_balance > 1: # send affection tokens to wallet C for selling if send_tokens(account, affection_address, wallet_c_address, affection_balance): @@ -87,7 +87,7 @@ while True: 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)))) + logging.info("AFFECTION™ Balance: {:.15f}".format(affection_balance := math.floor(get_token_balance(affection_address, wallet_b_address)))) if affection_balance > 1: # send affection tokens to wallet C for selling if send_tokens(account, affection_address, wallet_c_address, affection_balance):