Skip to content

Commit 70668e3

Browse files
committed
fix fake low_wallet_balance alert
1 parent 1ba49fb commit 70668e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/alert_bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def check_validator_wallet_balance(self):
322322
return
323323
validator_wallet = self.ton.GetValidatorWallet()
324324
validator_account = self.ton.GetAccount(validator_wallet.addrB64)
325-
if validator_account.balance < 10:
325+
if validator_account.status != "empty" and validator_account.balance < 10:
326326
self.send_alert("low_wallet_balance", wallet=validator_wallet.addrB64, balance=validator_account.balance)
327327

328328
def check_efficiency(self):

0 commit comments

Comments
 (0)