Skip to content

Commit

Permalink
fix balance issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rykcod authored Jan 26, 2024
1 parent 8daf0da commit e09616b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion massa-guard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sources/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" ])
Expand Down

0 comments on commit e09616b

Please sign in to comment.