Skip to content

Commit

Permalink
Fixed typo of sybmol to symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
terencelimzhengwei committed Nov 14, 2023
1 parent e1e8e0a commit 926e691
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
10 changes: 4 additions & 6 deletions apps/enterprise/src/chain/utils/getAssetsInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface TFMAssetInfo {

interface TFLIbcAssetInfo {
denom: string;
sybmol?: string;
symbol?: string;
name: string;
icon: string;
decimals?: number;
Expand All @@ -27,7 +27,7 @@ interface TFLIbcAssetInfo {
type TFLIbcAssetsInfo = Record<NetworkName, Record<string, TFLIbcAssetInfo>>;

interface TFLCw20AssetInfo {
sybmol?: string;
symbol?: string;
name: string;
icon: string;
decimals?: number;
Expand Down Expand Up @@ -56,10 +56,9 @@ export const getAssetsInfo = memoize(async (network: NetworkName = 'mainnet') =>
const { data: tflIbcAssets } = await axios.get<TFLIbcAssetsInfo>(TFL_IBC_ASSETS_INFO_URL);
Object.values(tflIbcAssets[network]).forEach((info) => {
if (!info.decimals) return;

result[info.denom] = {
name: info.name,
symbol: info.sybmol,
symbol: info.symbol,
decimals: info.decimals,
icon: info.icon,
type: 'native',
Expand All @@ -70,10 +69,9 @@ export const getAssetsInfo = memoize(async (network: NetworkName = 'mainnet') =>
const { data: tflCw20Assets } = await axios.get<TFLCw20AssetsInfo>(TFL_CW20_ASSETS_INFO_URL);
Object.entries(tflCw20Assets[network]).forEach(([id, info]) => {
if (!info.decimals) return;

result[id] = {
name: info.name,
symbol: info.sybmol,
symbol: info.symbol,
decimals: info.decimals,
icon: info.icon || cw20DefaultIcon,
type: 'cw20',
Expand Down
1 change: 0 additions & 1 deletion apps/enterprise/src/queries/useDaoAssets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ export const useDaoAssets = () => {

try {
const info = await getAssetInfo({ asset, lcd, networkName });

assets.push({
...asset,
...info,
Expand Down

0 comments on commit 926e691

Please sign in to comment.