Skip to content
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

US-2128: Change the order of tokens list to match the following sequence: RIF, USDRIF, RBTC, BTC, RDOC & others #886

Merged
merged 10 commits into from
Feb 26, 2024

Conversation

rodrigoncalves
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@TravellerOnTheRun TravellerOnTheRun left a comment

Choose a reason for hiding this comment

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

Some things left to fix, reconsider, future proof

src/screens/home/PortfolioComponent.tsx Outdated Show resolved Hide resolved
src/components/token/utils.ts Outdated Show resolved Hide resolved
src/components/token/utils.ts Outdated Show resolved Hide resolved
src/components/token/utils.ts Outdated Show resolved Hide resolved
src/components/token/utils.ts Outdated Show resolved Hide resolved
src/components/token/utils.ts Outdated Show resolved Hide resolved
src/components/token/utils.ts Outdated Show resolved Hide resolved
src/screens/home/PortfolioComponent.tsx Outdated Show resolved Hide resolved
Copy link
Collaborator

@TravellerOnTheRun TravellerOnTheRun left a comment

Choose a reason for hiding this comment

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

a few things to change left

src/screens/home/PortfolioComponent.tsx Outdated Show resolved Hide resolved
src/screens/home/PortfolioComponent.tsx Outdated Show resolved Hide resolved
src/shared/types/index.ts Outdated Show resolved Hide resolved
src/components/token/utils.ts Outdated Show resolved Hide resolved
@jormelCoin jormelCoin added Tested Ready to move forward and removed Ready for Testing labels Feb 20, 2024
Copy link
Collaborator

@TravellerOnTheRun TravellerOnTheRun left a comment

Choose a reason for hiding this comment

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

A couple of more things and we're good to merge

@@ -24,11 +29,14 @@ export const PortfolioComponent = ({
showTotalCard = true,
style,
}: Props) => {
const chainId = useAppSelector(selectChainId)
Copy link
Collaborator

Choose a reason for hiding this comment

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

it's better if we use getCurrentChainId since anytime we switch networks we modify this, it will make the chainId fetching more consistent and it can be used everywhere.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@@ -277,3 +279,24 @@ export const getIconSource = (
return undefined
}
}

export const getTokenByChainId = (
Copy link
Collaborator

Choose a reason for hiding this comment

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

getTokenSymbolByChainId will be more appropriate name for this function as that's what it returns.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I agree, done.

@jessgusclark jessgusclark merged commit 6d97c49 into develop Feb 26, 2024
1 check passed
@jessgusclark jessgusclark deleted the us-2128 branch February 26, 2024 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tested Ready to move forward
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants