Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #14 from jchen86/fix-incorrect-alert
Browse files Browse the repository at this point in the history
fix incorrect alert when balance remains unchanged
  • Loading branch information
jimmygchen authored Jun 2, 2022
2 parents e8f7bb3 + 93810f3 commit 1eb4d14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/alerts/validator-balance-reduced-alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function validatorBalanceReducedAlert(notifier, validators) {
.filter(v => {
const currentEpochBalance = v.current.balance;
const previousEpochBalance = v.previous.balance;
return (Number(currentEpochBalance) <= Number(previousEpochBalance))
return (Number(currentEpochBalance) < Number(previousEpochBalance));
});

if (validatorsToAlert.length > 0) {
Expand Down

0 comments on commit 1eb4d14

Please sign in to comment.