Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions eslint-suppressions.json
Original file line number Diff line number Diff line change
Expand Up @@ -428,12 +428,12 @@
},
"packages/assets-controllers/src/TokenDetectionController.test.ts": {
"no-restricted-syntax": {
"count": 2
"count": 1
}
},
"packages/assets-controllers/src/TokenDetectionController.ts": {
"no-restricted-syntax": {
"count": 6
"count": 4
}
},
"packages/assets-controllers/src/TokenListController.test.ts": {
Expand Down Expand Up @@ -480,7 +480,7 @@
"count": 6
},
"no-restricted-syntax": {
"count": 4
"count": 3
}
},
"packages/assets-controllers/src/TokensController.ts": {
Expand All @@ -491,7 +491,7 @@
"count": 1
},
"@typescript-eslint/prefer-optional-chain": {
"count": 4
"count": 3
},
"id-length": {
"count": 1
Expand All @@ -503,7 +503,7 @@
"count": 1
},
"no-restricted-syntax": {
"count": 2
"count": 1
},
"require-atomic-updates": {
"count": 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export type TokenDetectionControllerStopAction = {
};

/**
* For each token in the token list provided by the TokenListController, checks the token's balance for the selected account address on the active network.
* For each token in the token list (fetched directly from the tokens API), checks the token's balance for the selected account address on the active network.
* On mainnet, if token detection is disabled in preferences, ERC20 token auto detection will be triggered for each contract address in the legacy token list from the @metamask/contract-metadata repo.
*
* @param options - Options for token detection.
Expand All @@ -58,7 +58,8 @@ export type TokenDetectionControllerDetectTokensAction = {
* This method:
* - Checks if useTokenDetection preference is enabled (skips if disabled)
* - Checks if external services are enabled (skips if disabled)
* - Tokens are expected to be in the tokensChainsCache with full metadata
* - Fetches token metadata from the v3 tokens API and filters out unverified
* tokens (occurrences < 3) as a spam prevention measure
* - Balance fetching is skipped since balances are provided by the websocket
* - Ignored tokens have been filtered out by the caller
*
Expand All @@ -78,7 +79,8 @@ export type TokenDetectionControllerAddDetectedTokensViaWsAction = {
* - Checks if useTokenDetection preference is enabled (skips if disabled)
* - Checks if external services are enabled (skips if disabled)
* - Filters out tokens already in allTokens or allIgnoredTokens
* - Tokens are expected to be in the tokensChainsCache with full metadata
* - Fetches token metadata from the v3 tokens API and filters out unverified
* tokens (occurrences < 3) as a spam prevention measure
* - Balance fetching is skipped since balances are provided by the caller
*
* @param options - The options object
Expand Down
Loading
Loading