Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
redref committed May 21, 2024
1 parent 8af9b98 commit 9d7bc61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mytoncore/mytoncore.py
Original file line number Diff line number Diff line change
Expand Up @@ -1337,9 +1337,9 @@ def GetStake(self, account, args=None):
else:
for validator in vconfig.validators:
# Check validator is in active period
if validator.election_date - config15["elections_end_before"] < get_timestamp() < validator.expire_at:
if validator.election_date - config15["electionsEndBefore"] < get_timestamp() < validator.expire_at:
# Check validator is elected
if self.GetAdnlAddr() in self.GetValidatorsList():
if self.GetAdnlAddr() in [x["adnlAddr"] for x in self.GetValidatorsList()]:
stake = int(account.balance*sp)
break
else:
Expand Down

0 comments on commit 9d7bc61

Please sign in to comment.