You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Display total inflow value when user has cashed out from Ondo
## **Changelog**
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
Feature: my feature nameScenario: user [verb for user action]Given [describe expected initial app state]
When user [verb for user action]
Then [describe expected outcome]
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
Low Risk
Low risk UI-only change gated on totalCashedOut > 0, plus i18n string additions and test updates; no auth, network, or data-write paths are modified.
Overview
Adds a new "Total inflow" stat to OndoCampaignStatsView, displayed alongside Days held when a user has a non-zero totalCashedOut (i.e., the outflow row is shown). Uses summary.totalUsdDeposited for the value and keeps it hidden when no cash-out has occurred.
Updates the Ondo campaign stats tests to assert the new row/value and adds label_total_inflow translations across supported locales.
Reviewed by Cursor Bugbot for commit d1d4104. Bugbot is set up for automated code reviews on this repo. Configure here.
Selected Performance tags: None (no tests recommended)
Risk Level: low
AI Confidence: 95%
click to see 🤖 AI reasoning details
E2E Test Selection:
The PR makes two types of changes:
OndoCampaignStatsView.tsx: Adds a new "Total inflow" stat cell to the Ondo Campaign Stats view. This is a minor, isolated UI addition within the Rewards feature. It computes totalInflowValue from portfolioData.summary.totalUsdDeposited and renders a new StatCell component when the campaign is not complete and the user has cashed out. The change is self-contained within the Rewards/Ondo Campaign feature.
Locale files (16 languages): Purely additive - adds the new label_total_inflow translation key across all supported languages. No existing keys are modified.
Why no E2E tags are selected:
No E2E tests exist for the Ondo Campaign / Rewards feature in the available test suite
The changes don't touch any shared components that could break existing tests (no navigation, modals, confirmations, browser, controllers, or Engine changes)
The locale changes are purely additive and won't break any existing string lookups
None of the available E2E test tags (SmokeAccounts, SmokeConfirmations, SmokeIdentity, SmokeNetworkAbstractions, SmokeNetworkExpansion, SmokeSwap, SmokeStake, SmokeWalletPlatform, SmokeMoney, SmokePerps, SmokeMultiChainAPI, SmokePredictions, SmokeSeedlessOnboarding, SmokeBrowser, SmokeSnaps) cover the Rewards/Ondo Campaign functionality.
Performance Test Selection:
The changes are limited to a UI stat cell addition in the Rewards/Ondo Campaign view and locale string additions. There are no changes to rendering-heavy components, data loading pipelines, state management, account/network lists, or critical user flows that would impact measurable performance metrics.
sophieqgu
changed the title
Add total outflow when user has cashed out value
chore(rewards): Add total outflow when user has cashed out value
May 13, 2026
sophieqgu
changed the title
chore(rewards): Add total outflow when user has cashed out value
chore(rewards): add total outflow when user has cashed out value
May 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Low Risk
Low risk UI-only change gated on
totalCashedOut > 0, plus i18n string additions and test updates; no auth, network, or data-write paths are modified.Overview
Adds a new "Total inflow" stat to
OndoCampaignStatsView, displayed alongside Days held when a user has a non-zerototalCashedOut(i.e., the outflow row is shown). Usessummary.totalUsdDepositedfor the value and keeps it hidden when no cash-out has occurred.Updates the Ondo campaign stats tests to assert the new row/value and adds
label_total_inflowtranslations across supported locales.Reviewed by Cursor Bugbot for commit d1d4104. Bugbot is set up for automated code reviews on this repo. Configure here.