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

This commit is contained in:
2026-08-13 23:07:32 +02:00
parent 1db8649867
commit 4e707fdcba
3 changed files with 12 additions and 4 deletions

View File

@@ -432,9 +432,13 @@ final class AnalyticsService
$walletBalanceCurrentAssetDirect = (float) ($walletBalances[$latestAsset] ?? 0.0);
$walletBalanceCurrentAssetEquivalent = $latestAsset !== ''
? (
$useWalletSnapshot
? $this->walletSnapshotValue($latestWalletSnapshot, $latestAsset, $latest)
: $this->walletBalanceValue($walletBalances, $latestAsset, $latest)
$walletBalanceCurrentAssetDirect > 0
? $walletBalanceCurrentAssetDirect
: (
$useWalletSnapshot
? $this->walletSnapshotValue($latestWalletSnapshot, $latestAsset, $latest)
: $this->walletBalanceValue($walletBalances, $latestAsset, $latest)
)
)
: null;
$holdingsCurrentAsset = ($walletBalanceCurrentAssetEquivalent !== null ? $walletBalanceCurrentAssetEquivalent : 0.0) + $adjustedVisibleCoins;