adasd
This commit is contained in:
@@ -33,9 +33,7 @@ final class AnalyticsService
|
||||
$previous = null;
|
||||
$previousMeasuredTs = null;
|
||||
$previousIntervalRate = null;
|
||||
$previousVisibleCoins = null;
|
||||
$previousCoinCurrency = null;
|
||||
$previousCumulativePayouts = null;
|
||||
$result = [];
|
||||
$payoutIndex = 0;
|
||||
$payoutsByAsset = [];
|
||||
@@ -164,7 +162,7 @@ final class AnalyticsService
|
||||
$normalizedFlags = is_array($decoded) ? $decoded : [$normalizedFlags];
|
||||
}
|
||||
|
||||
$result[] = array_merge($row, [
|
||||
$enrichedRow = array_merge($row, [
|
||||
'coins_total_visible' => $this->roundOrNull($visibleCoinsTotal, 6),
|
||||
'coins_total_effective' => $this->roundOrNull($effectiveCoinsTotal, 6),
|
||||
'coin_currency' => $coinCurrency,
|
||||
@@ -195,15 +193,14 @@ final class AnalyticsService
|
||||
'measured_date' => substr((string) $row['measured_at'], 0, 10),
|
||||
'ocr_flags' => is_array($normalizedFlags) ? $normalizedFlags : [],
|
||||
]);
|
||||
$result[] = $enrichedRow;
|
||||
|
||||
if ($perHourInterval !== null) {
|
||||
$previousIntervalRate = $perHourInterval;
|
||||
}
|
||||
$previous = $row;
|
||||
$previous = $enrichedRow;
|
||||
$previousMeasuredTs = $measuredTs > 0 ? $measuredTs : null;
|
||||
$previousVisibleCoins = $visibleCoinsTotal;
|
||||
$previousCoinCurrency = $coinCurrency;
|
||||
$previousCumulativePayouts = $cumulativePayouts;
|
||||
}
|
||||
|
||||
return $result;
|
||||
|
||||
Reference in New Issue
Block a user