fix: balance
This commit is contained in:
@@ -76,14 +76,18 @@ class TelegramNotifier
|
||||
];
|
||||
|
||||
foreach ($wallets as $i => $w) {
|
||||
$bal = trim(($w['balance'] ?? '').' '.($w['source'] ?? ''));
|
||||
$bal = trim((string) ($w['balance'] ?? ''));
|
||||
if ($bal === '') {
|
||||
$bal = '—';
|
||||
}
|
||||
$source = trim((string) ($w['source'] ?? ''));
|
||||
if ($i > 0) {
|
||||
$lines[] = '';
|
||||
}
|
||||
$lines[] = '⛓ <b>Chain</b>: '.$this->e(($w['chain'] ?? '') !== '' ? $w['chain'] : '—');
|
||||
if ($source !== '') {
|
||||
$lines[] = '🏷 <b>Source</b>: '.$this->e($source);
|
||||
}
|
||||
$lines[] = '📬 <b>Address</b>: <code>'.$this->e($w['address'] ?? '').'</code>';
|
||||
$lines[] = '💵 <b>Balance</b>: '.$this->e($bal);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user