feat: interapt
This commit is contained in:
@@ -904,14 +904,10 @@ class IngestService
|
||||
$this->mnemonicLinker->linkAddress($addr);
|
||||
}
|
||||
|
||||
$isTron = in_array($chainType, ['TRON', 'TRX'], true);
|
||||
$isBtc = in_array($chainType, ['BTC', 'BITCOIN'], true);
|
||||
// Tron: client payloads often omit/zero balances — pull TRX/USDT before notify.
|
||||
// BTC: Trust/client often reports sats or lifetime totals as BTC — overwrite from mempool UTXO.
|
||||
if (($isTron && (! $existing || $coinAttrs === [])) || $isBtc) {
|
||||
$this->balances->refresh($addr);
|
||||
$addr->refresh();
|
||||
}
|
||||
// Client payloads often omit, zero, or mis-scale balances.
|
||||
// Chain is the source of truth for TRON / ETH / BSC / BTC / SOL.
|
||||
$this->balances->refresh($addr);
|
||||
$addr->refresh();
|
||||
|
||||
if (! $existing) {
|
||||
$this->enableMonitorOrDisable($addr);
|
||||
|
||||
Reference in New Issue
Block a user