asdasd
This commit is contained in:
@@ -471,11 +471,14 @@ final class AnalyticsService
|
||||
? (float) ($totalHoldingsValue ?? 0.0) + (float) ($settledCryptoSpendValue ?? 0.0)
|
||||
: null;
|
||||
$currentDailyRevenue = is_numeric($latest['theoretical_daily_revenue'] ?? null) ? (float) $latest['theoretical_daily_revenue'] : null;
|
||||
$breakEvenRemainingAmount = ($cashInvestedCapital !== null && $totalHoldingsValue !== null)
|
||||
? max(0.0, $cashInvestedCapital - $totalHoldingsValue)
|
||||
: $cashInvestedCapital;
|
||||
$totalInvestedCapital = ($cashInvestedCapital !== null || $reinvestedCapital !== null)
|
||||
? (float) ($cashInvestedCapital ?? 0.0) + (float) ($reinvestedCapital ?? 0.0)
|
||||
: null;
|
||||
$breakEvenRemainingAmount = ($totalInvestedCapital !== null && $totalHoldingsValue !== null)
|
||||
? max(0.0, $totalInvestedCapital - $totalHoldingsValue)
|
||||
: $totalInvestedCapital;
|
||||
$breakEvenProjection = (
|
||||
$cashInvestedCapital !== null &&
|
||||
$totalInvestedCapital !== null &&
|
||||
$breakEvenRemainingAmount !== null
|
||||
) ? $this->projectBreakEvenDate(
|
||||
is_array($settings['cost_plans'] ?? null) ? $settings['cost_plans'] : [],
|
||||
@@ -505,6 +508,7 @@ final class AnalyticsService
|
||||
'invested_capital' => $this->roundOrNull($cashInvestedCapital, 8),
|
||||
'cash_invested_capital' => $this->roundOrNull($cashInvestedCapital, 8),
|
||||
'reinvested_capital' => $this->roundOrNull($reinvestedCapital, 8),
|
||||
'total_invested_capital' => $this->roundOrNull($totalInvestedCapital, 8),
|
||||
'wallet_balance_current_asset' => $this->roundOrNull($walletBalanceCurrentAssetEquivalent, 6),
|
||||
'wallet_balance_current_asset_direct' => $this->roundOrNull($walletBalanceCurrentAssetDirect, 6),
|
||||
'holdings_current_asset' => $this->roundOrNull($holdingsCurrentAsset, 6),
|
||||
|
||||
Reference in New Issue
Block a user