diff --git a/modules/mining-checker/src/Domain/AnalyticsService.php b/modules/mining-checker/src/Domain/AnalyticsService.php index c3e5e259..1bf3e43c 100644 --- a/modules/mining-checker/src/Domain/AnalyticsService.php +++ b/modules/mining-checker/src/Domain/AnalyticsService.php @@ -58,7 +58,9 @@ final class AnalyticsService $includeFullDetail = !$fullLatestOnly || $index === $lastIndex; while (isset($payouts[$payoutIndex])) { $payoutTs = $this->utcTimestamp((string) ($payouts[$payoutIndex]['payout_at'] ?? '')); - if ($payoutTs <= 0 || $payoutTs > $measuredTs) { + // A transfer with the exact same timestamp belongs to the next interval, + // otherwise the current measurement is inflated and the following rate turns negative. + if ($payoutTs <= 0 || $payoutTs >= $measuredTs) { break; }