ycyxcxc
This commit is contained in:
@@ -1268,6 +1268,8 @@ final class Router
|
||||
|
||||
if (in_array($view, ['overview', 'mining'], true)) {
|
||||
$rows = $this->repository()->listRecentMeasurements($projectKey, self::BOOTSTRAP_MEASUREMENT_LIMIT);
|
||||
} elseif ($view === 'wallet') {
|
||||
$rows = $this->repository()->listRecentMeasurements($projectKey, 1);
|
||||
} elseif ($view === 'measurements') {
|
||||
$rows = $this->repository()->listRecentMeasurements($projectKey, 10);
|
||||
} else {
|
||||
@@ -1331,6 +1333,14 @@ final class Router
|
||||
|
||||
private function bootstrapSummary(array $measurements, array $settings, array $targets, array $walletSnapshots, string $view): array
|
||||
{
|
||||
if ($view === 'wallet') {
|
||||
return $this->analytics()->buildSummary($measurements, $settings, [], [
|
||||
'include_offer_scenarios' => false,
|
||||
'include_long_term_projection' => false,
|
||||
'wallet_snapshots' => $walletSnapshots,
|
||||
]);
|
||||
}
|
||||
|
||||
if (!in_array($view, ['overview', 'mining'], true)) {
|
||||
return [
|
||||
'latest_measurement' => $measurements !== [] ? $measurements[array_key_last($measurements)] : null,
|
||||
|
||||
Reference in New Issue
Block a user