We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b658fb commit b5b354bCopy full SHA for b5b354b
src/lib/web3/hooks/useUserBankValues.ts
@@ -22,6 +22,10 @@ export function useUserBankValues(): TokenCoin[] {
22
23
const allTokens = useTokens();
24
const selectedTokens = useMemo<Token[]>(() => {
25
+ // note: this could be better: we are just finding the first match in the chain registry
26
+ // with that denom, but really it needs to check for chain id too
27
+ // ibc tokens will need to be checked here too
28
+ // this should probably live in the indexerData as we'll always want the filtered balances
29
return (balances || []).reduce<Token[]>((result, balance) => {
30
const token = allTokens.find(matchTokenDenom(balance.denom));
31
if (token) {
0 commit comments