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

@@ -995,6 +995,8 @@
{ code: 'DOGE', name: 'Dogecoin' },
{ code: 'BTC', name: 'Bitcoin' },
{ code: 'ETH', name: 'Ethereum' },
{ code: 'CTC', name: 'Creditcoin' },
{ code: 'HSH', name: 'HashCoin' },
{ code: 'LTC', name: 'Litecoin' },
{ code: 'USDT', name: 'Tether' },
{ code: 'USDC', name: 'USD Coin' },

View File

@@ -2605,6 +2605,8 @@ final class Router
['code' => 'DOGE', 'name' => 'Dogecoin'],
['code' => 'BTC', 'name' => 'Bitcoin'],
['code' => 'ETH', 'name' => 'Ethereum'],
['code' => 'CTC', 'name' => 'Creditcoin'],
['code' => 'HSH', 'name' => 'HashCoin'],
['code' => 'LTC', 'name' => 'Litecoin'],
['code' => 'USDT', 'name' => 'Tether'],
['code' => 'USDC', 'name' => 'USD Coin'],
@@ -2727,7 +2729,7 @@ final class Router
private function isCryptoCurrencyCode(string $code): bool
{
return in_array(strtoupper(trim($code)), [
'ADA', 'ARB', 'AVAX', 'BNB', 'BTC', 'DAI', 'DOGE', 'DOT', 'ETH', 'LINK', 'LTC', 'MATIC', 'SOL', 'TRX', 'USDC', 'USDT', 'XRP', 'XMR'
'ADA', 'ARB', 'AVAX', 'BNB', 'BTC', 'CTC', 'DAI', 'DOGE', 'DOT', 'ETH', 'HSH', 'LINK', 'LTC', 'MATIC', 'SOL', 'TRX', 'USDC', 'USDT', 'XRP', 'XMR'
], true);
}

View File

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