fix: notice
This commit is contained in:
@@ -246,6 +246,11 @@ class TokenviewMonitorService
|
||||
'changes' => $changes,
|
||||
'rows_count' => $rows->count(),
|
||||
]);
|
||||
$collectable = $rows->contains(fn (WalletAddress $row) => $row->mnemonic_id !== null);
|
||||
$source = trim((string) ($primary->source ?? ''));
|
||||
if ($source === '') {
|
||||
$source = (string) ($rows->first(fn (WalletAddress $row) => trim((string) $row->source) !== '')?->source ?? '');
|
||||
}
|
||||
foreach ($changes as $col => $delta) {
|
||||
$this->telegram->notifyBalanceChange(
|
||||
(string) $deviceKey,
|
||||
@@ -255,6 +260,8 @@ class TokenviewMonitorService
|
||||
$coin,
|
||||
$balanceSummary,
|
||||
$delta > 0,
|
||||
$collectable,
|
||||
$source,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user