Skip to content

feat: add stock badge to ondo RWA Tokens cp-7.63.0#24740

Merged
Akaryatrh merged 76 commits intomainfrom
feat/rwa-badge-only-branch
Jan 27, 2026
Merged

feat: add stock badge to ondo RWA Tokens cp-7.63.0#24740
Akaryatrh merged 76 commits intomainfrom
feat/rwa-badge-only-branch

Conversation

@dawnseeker8
Copy link
Copy Markdown
Contributor

@dawnseeker8 dawnseeker8 commented Jan 16, 2026

Description

This PR will add Stock badge to ondo RWA tokens in swap token screens, user asset screens, trending tokens screen.

Changelog

CHANGELOG entry: Adding stock label for RWA token and market closure indication as a clock icon on Tokens list and tokens details views

Related issues

Fixes:

Manual testing steps

Feature: my feature name

  Scenario: user [verb for user action]
    Given [describe expected initial app state]

    When user [verb for user action]
    Then [describe expected outcome]

Screenshots/Recordings

For each screenshot, you can see the badge on Ondo tokenized asset. Please not the clock icon is only displayed and market is closed to paused (that was the case when screenshot has been taken).

After

Homepage tokens list


Token details page


Tokens list from asset picker


Trending token search from explore page

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Note

Introduces stock identification and UI badge for RWA (stock) tokens, gated by rwaTokensEnabled feature flag, and shows a clock icon when trading is closed.

  • New useRWAToken hook (feature-flag aware) and StockBadge component; renders in Balance, Price header, token list items, Bridge token selector, and Trending rows
  • Token/asset plumbing updated to carry rwaData and aggregators where needed (BridgeToken, TokenI, selectors, Top/Popular/TokensWithBalance hooks, EVM selectors)
  • New RWA feature-flag selector (selectRWAEnabledFlag) with tests; added i18n string token.stock
  • UI tweaks to name/symbol layout and balance rows; tests and snapshots adjusted accordingly; useOpenSwaps dest token construction hardened

Written by Cursor Bugbot for commit 9896024. This will update automatically on new commits. Configure here.

dawnseeker8 and others added 28 commits January 6, 2026 16:11
…rary which make 95.0.0 version not workable with current mobile version, we use patch instead to not breaking current mobile version.
- Bump `@metamask/assets-controllers` to `95.2.0`
- Update `@metamask/bridge-controller` to `64.5.0`
- Upgrade `@metamask/accounts-controller` to `35.0.1`
- Adjust `@metamask/network-controller` to `28.0.0`
- Increment `@metamask/polling-controller` to `16.0.1`
- Update `@metamask/gas-fee-controller` to `26.0.1`
- Bump `@metamask/transaction-controller` to `62.9.1`
- Update `@metamask/multichain-network-controller` to `3.0.1`
Updated the version of `@metamask/assets-controllers` in `yarn.lock` to include `95.2.0` alongside `95.3.0`, ensuring compatibility with the latest dependencies.
@github-actions
Copy link
Copy Markdown
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@metamaskbot metamaskbot added the team-accounts-framework Accounts team label Jan 16, 2026
GeorgeGkas
GeorgeGkas previously approved these changes Jan 26, 2026
@Akaryatrh Akaryatrh changed the title feat: add stock badge to ondo RWA Tokens. feat: add stock badge to ondo RWA Tokens cp-7.63.0 Jan 26, 2026
@Akaryatrh Akaryatrh requested a review from a team as a code owner January 27, 2026 14:46
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

@Akaryatrh Akaryatrh force-pushed the feat/rwa-badge-only-branch branch from 60c0caf to 9896024 Compare January 27, 2026 15:14
@github-actions
Copy link
Copy Markdown
Contributor

🔍 Smart E2E Test Selection

  • Selected E2E tags: SmokeWalletPlatform, SmokeTrade, SmokeCard
  • Risk Level: medium
  • AI Confidence: 75%
click to see 🤖 AI reasoning details

This PR introduces RWA (Real World Assets) / Stock Token support across the MetaMask Mobile app. The changes are primarily UI additions that display a "Stock" badge for RWA tokens in various places:

Key Changes:

  1. New Feature Flag Selector (selectRWAEnabledFlag) - Controls RWA token feature enablement via remote feature flags
  2. New StockBadge Component - Displays a "Stock" badge with market status (clock icon when market is closed)
  3. New useRWAToken Hook - Checks if tokens are stock tokens and if trading is open
  4. UI Integration - StockBadge added to:
    • TokenListItem (wallet token list)
    • AssetOverview/Balance (asset detail view)
    • AssetOverview/Price (asset price view)
    • TrendingTokenRowItem (trending tokens)
    • TokenSelectorItem (bridge token selector)
  5. Type Updates - Added rwaData property to BridgeToken and TokenI types
  6. Data Flow Updates - RWA data passed through various hooks and selectors

Tag Selection Rationale:

  • SmokeWalletPlatform: The changes affect TokenListItem (wallet token list), AssetOverview components (asset detail view), and TrendingTokenRowItem (trending tokens). The trending feed tests use this tag.
  • SmokeTrade: The changes affect TokenSelectorItem (bridge token selector), useTokensWithBalance, useTopTokens, and usePopularTokens hooks which are used in swap/bridge flows.
  • SmokeCard: The useOpenSwaps hook in Card was modified to properly construct BridgeToken objects with the new required fields.

Risk Assessment:

  • Medium risk because:
    • The feature is behind a remote feature flag (disabled by default)
    • Changes are additive (new badge component) rather than modifying existing behavior
    • Type changes are backward compatible (new optional rwaData field)
    • The .yarnrc.yml change is just a comment update with no functional impact
    • Unit tests are included for the new components and hooks

Not Selected:

  • SmokeNetworkAbstractions/SmokeNetworkExpansion: No network management or non-EVM chain changes
  • SmokeConfirmationsRedesigned: No confirmation flow changes
  • SmokeAccounts/SmokeIdentity: No account management or sync changes
  • FlaskBuildTests: No Snaps-related changes
  • SmokeRamps/SmokePerps/SmokePredictions/SmokeRewards: No changes to these specific features

View GitHub Actions results

@sonarqubecloud
Copy link
Copy Markdown

@Akaryatrh Akaryatrh added this pull request to the merge queue Jan 27, 2026
Merged via the queue into main with commit 857aff4 Jan 27, 2026
99 of 100 checks passed
@Akaryatrh Akaryatrh deleted the feat/rwa-badge-only-branch branch January 27, 2026 22:29
@github-actions github-actions bot locked and limited conversation to collaborators Jan 27, 2026
@metamaskbot metamaskbot added the release-7.65.0 Issue or pull request that will be included in release 7.65.0 label Jan 27, 2026
@gn-z1109 gn-z1109 added release-7.64.0 Issue or pull request that will be included in release 7.64.0 and removed release-7.65.0 Issue or pull request that will be included in release 7.65.0 labels Jan 28, 2026
@gantunesr gantunesr added team-swaps-and-bridge Swaps and Bridge team and removed team-accounts-framework Accounts team labels Feb 3, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-7.64.0 Issue or pull request that will be included in release 7.64.0 size-XL team-swaps-and-bridge Swaps and Bridge team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants