feat: address
This commit is contained in:
@@ -46,6 +46,20 @@ class TokenviewMonitorService
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if this address should have monitoring enabled:
|
||||
* Tokenview is configured AND the chain type is supported.
|
||||
* Does NOT make an API call — purely a local check.
|
||||
*/
|
||||
public function shouldMonitor(WalletAddress $address): bool
|
||||
{
|
||||
if (! $this->client->enabled()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return self::coinAbbrFromChainType($address->chain_type) !== null;
|
||||
}
|
||||
|
||||
public function syncMonitor(WalletAddress $address): bool
|
||||
{
|
||||
if (! $this->client->enabled()) {
|
||||
|
||||
Reference in New Issue
Block a user