-
-
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: multichain detect tokens feat #12417
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. |
83504b2
to
9bac771
Compare
c97faed
to
a92a4d5
Compare
a92a4d5
to
e395402
Compare
Bitrise🔄🔄🔄 Commit hash: 6e38ade Note
|
66ac45f
to
bd8fcc8
Compare
Bitrise🔄🔄🔄 Commit hash: bd8fcc8 Note
|
Bitrise❌❌❌ Commit hash: c22734c Note
Tip
|
Bitrise✅✅✅ Commit hash: 5b8756b Note
|
Quality Gate passedIssues Measures |
import { useNavigation } from '@react-navigation/native'; | ||
import { useSelector } from 'react-redux'; | ||
import AssetOptions from './AssetOptions'; | ||
// import { strings } from '../../../../locales/i18n'; |
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 we remove this commented code?
tokensToIgnore.length > 0 && | ||
(await TokensController.ignoreTokens(tokensToIgnore)); | ||
if (tokensToIgnore.length > 0) { | ||
const tokensToIgnoreByChainId = tokensToIgnore.reduce< |
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.
We may want to retry a more performance approach here, but need some more time to think about this just flagging with this comment
if (tokensToImport.length > 0) { | ||
await TokensController.addTokens(tokensToImport, networkClientId); | ||
if (isPortfolioViewEnabled) { | ||
const tokensByChainId = tokensToImport.reduce< |
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.
Same here
// TODO: This isn't working fully, once a network has been selected then it | ||
// can detect all tokens in that network. But by default it only shows | ||
// detected tokens if the user has chosen it in the past | ||
export const selectAllDetectedTokensFlat = createSelector( |
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.
It also seams that this can create a big burden performance qise if the user have a lot of tokens, we should try to get it optimized
Description
PR to add the multichain autodetection to mobile under a feature flag
Related issues
Fixes:
Manual testing steps
PORTFOLIO_VIEW yarn watch
yarn start:ios
Screenshots/Recordings
Before
After
after.mov
Pre-merge author checklist
Pre-merge reviewer checklist