Skip to content

Commit

Permalink
fix: Metrics -- include ethBelowThreshold as part of leftovers during…
Browse files Browse the repository at this point in the history
… AW open
  • Loading branch information
aziolek committed Apr 17, 2024
1 parent 26cab40 commit 865f2ae
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ const MetricsEpochGridFundsUsage: FC<MetricsEpochGridFundsUsageProps> = ({
return BigInt(0);
}
if (epoch === currentEpoch - 1 && isDecisionWindowOpen) {
return unusedRewards;
return unusedRewards + ethBelowThreshold;
}
return leftover;
}, [epoch, currentEpoch, isDecisionWindowOpen, leftover, unusedRewards]);
}, [ethBelowThreshold, epoch, currentEpoch, isDecisionWindowOpen, leftover, unusedRewards]);

const total =
claimedByUsers +
Expand Down

0 comments on commit 865f2ae

Please sign in to comment.