From e09616b621dc73109bb53c16c1559ae72a027603 Mon Sep 17 00:00:00 2001 From: Dockyr <32191714+rykcod@users.noreply.github.com> Date: Fri, 26 Jan 2024 14:18:37 +0100 Subject: [PATCH] fix balance issue --- massa-guard.sh | 2 +- sources/lib.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/massa-guard.sh b/massa-guard.sh index 874c31b..a2c12a6 100644 --- a/massa-guard.sh +++ b/massa-guard.sh @@ -43,7 +43,7 @@ do # Get MAS amount MasBalance=$(GetMASAmount "$WalletAddress") # Log Wallet balance if not already log today - if [ ! -e $PATH_LOGS_MASSAGUARD/$(date +%Y%m%d)-massa_guard.txt ]; LogWalletsBalance "$CandidateRolls" "$MasBalance" "$WalletAddress" then + if [ ! -e $PATH_LOGS_MASSAGUARD/$(date +%Y%m%d)-massa_guard.txt ]; then LogWalletsBalance "$CandidateRolls" "$MasBalance" "$WalletAddress"; fi # Buy max roll or 1 roll if possible when candidate roll amount = 0 BuyOrSellRoll "$CandidateRolls" "$MasBalance" "$WalletAddress" done diff --git a/sources/lib.sh b/sources/lib.sh index d04e7f3..8a8c501 100644 --- a/sources/lib.sh +++ b/sources/lib.sh @@ -132,7 +132,7 @@ BuyOrSellRoll() { # If MAS amount < 100 MAS and Candidate roll = 0 elif ([ $1 -eq 0 ] && [ $2 -lt 100 ]) then - Event="[KO][ROLL]Cannot buy first ROLL on wallet $3 because MAS Amount less than 100. Please get 100 MAS" + Event="[KO][ROLL]Cannot buy first ROLL on wallet $3 because MAS Amount less than 100. Please get 100 MAS" # If MAS amount > $RESCUE_MAS_AMOUNT MAS and no rolls limitation, buy ROLLs elif ([ $2 -gt $(($RESCUE_MAS_AMOUNT+100)) ] && [ $TARGET_ROLL_AMOUNT == "NULL" ])