-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
77dc9c0
to
e84254f
Compare
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.
Some things left to fix, reconsider, future proof
719a4fb
to
13a5346
Compare
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.
a few things to change left
935f575
to
83245fa
Compare
83245fa
to
1d16fdf
Compare
1d16fdf
to
f4807cf
Compare
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.
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) |
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'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.
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.
done
src/screens/home/TokenImage.tsx
Outdated
@@ -277,3 +279,24 @@ export const getIconSource = ( | |||
return undefined | |||
} | |||
} | |||
|
|||
export const getTokenByChainId = ( |
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.
getTokenSymbolByChainId
will be more appropriate name for this function as that's what it returns.
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 agree, done.
No description provided.