adasd
All checks were successful
Deploy / deploy-staging (push) Successful in 23s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-06-22 01:03:32 +02:00
parent c6bdcb988e
commit ba8794c371

View File

@@ -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;
}