-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add aggregated portfolio balance cross chains #12505
base: main
Are you sure you want to change the base?
Conversation
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. |
6878c10
to
ea8ee34
Compare
Bitrise❌❌❌ Commit hash: a4b9b7e Note
Tip
|
i just did some QA, works as expected. Here are the tests I performed:
Tests not yet conducted:
|
Bitrise✅✅✅ Commit hash: 741c585 Note
|
Bitrise✅✅✅ Commit hash: b74da86 Note
|
5808bd1
to
156924f
Compare
Bitrise✅✅✅ Commit hash: 156924f Note
|
Quality Gate passedIssues Measures |
<View style={styles.wrapper}> | ||
<SensitiveText | ||
isHidden={privacyMode} | ||
length="10" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird that this is a string and not a number isn't it?
if (isPortfolioViewEnabled) { | ||
total = totalFiatBalance ?? 0; | ||
} else { | ||
const tokenFiatTotal = balance?.tokenFiat ?? 0; | ||
const ethFiatTotal = balance?.ethFiat ?? 0; | ||
total = tokenFiatTotal + ethFiatTotal; | ||
} | ||
} else if (isPortfolioViewEnabled) { | ||
total = totalTokenFiat ?? 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hopefully we can remove these isPortfolioViewEnabled
checks not long after release. We should probably do this for extension too once the feature is deemed stable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would hate for these checks to be long lived on production
@@ -160,7 +160,7 @@ export const selectNetworkClientId = createSelector( | |||
|
|||
export const selectIsAllNetworks = createSelector( | |||
selectNetworkConfigurations, | |||
selectTokenNetworkFilter, | |||
(state: RootState) => selectTokenNetworkFilter(state), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you help me understand this change? I'm not sure if I've seen this pattern before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ✅
Description
PR that adds cross chain aggregated balance display on main wallet view and in account picker component.
This branch was created from salim/multichain-detect-tokens-feat
Related issues
Fixes:
Manual testing steps
Build using PORTFOLIO_VIEW flag
Screenshots/Recordings
Before
After
Screen.Recording.2024-12-03.at.00.45.10.mov
Pre-merge author checklist
Pre-merge reviewer checklist