Skip to content

Commit

Permalink
Merge pull request #973 from oraichain/feat/update-chain
Browse files Browse the repository at this point in the history
update: new token info: weth,och,ntmpi
  • Loading branch information
haunv3 committed Feb 28, 2024
2 parents 3ef8c0f + e1c7936 commit bf8e39d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/Account/AssetsTable/AssetsTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ const AssetsTable = memo(({ data = [] }) => {
let tokenInfo = amountDecimal18.find(e => e.address?.toLowerCase() == validatorAddressSplit?.toLowerCase());
const tokenInOraichain = oraichainTokens.find(token => {
const arrIncludes = [token?.denom?.toLowerCase(), token?.name?.toLowerCase()];
return arrIncludes.includes(validatorAddressSplit?.toLowerCase()) || arrIncludes.includes(token?.denom?.toLowerCase());
return (
arrIncludes.includes(item?.name?.toLowerCase()) ||
arrIncludes.includes(item?.denom?.toLowerCase()) ||
arrIncludes.includes(validatorAddressSplit?.toLowerCase()) ||
arrIncludes.includes(tokenInfo?.name)
);
});

const tokenUsd = priceTokens[tokenInOraichain?.coinGeckoId] || 0;
Expand Down

0 comments on commit bf8e39d

Please sign in to comment.