Skip to content

fix(assets-controller): exempt user-initiated activity from spam filtering - #9768

Draft
salimtb wants to merge 1 commit into
mainfrom
fix/assets-controller-ws-spam-filtering
Draft

fix(assets-controller): exempt user-initiated activity from spam filtering#9768
salimtb wants to merge 1 commit into
mainfrom
fix/assets-controller-ws-spam-filtering

Conversation

@salimtb

@salimtb salimtb commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Occurrence-floor / Blockaid spam filtering now applies only to passively discovered tokens (auto-detection, incoming-only websocket transfers such as airdrops). Assets acquired through user-initiated activity — the account sent funds in the same transaction, e.g. swap outputs — are listed on a new DataResponse.userInteractedAssets field by AccountActivityDataSource and bypass the filter in TokenDataSource, so they always show even when below the per-chain occurrence floor.

Filtered-out spam is now also stripped from stub assetsInfo on the response, and balance deletions match asset IDs case-insensitively.

Explanation

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

…ering

Occurrence-floor / Blockaid spam filtering now applies only to passively
discovered tokens (auto-detection, incoming-only websocket transfers such
as airdrops). Assets acquired through user-initiated activity — the account
sent funds in the same transaction, e.g. swap outputs — are listed on a new
DataResponse.userInteractedAssets field by AccountActivityDataSource and
bypass the filter in TokenDataSource, so they always show even when below
the per-chain occurrence floor.

Filtered-out spam is now also stripped from stub assetsInfo on the
response, and balance deletions match asset IDs case-insensitively.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Prithpal-Sooriya

Copy link
Copy Markdown
Contributor

Hmm, I think the intention it correct here, but this still impacts:

  • receiving assets (ensure no regression if you were to send from a diff wallet)
  • metadata override
  • no occurrence filtering

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants