Skip to content

Commit

Permalink
Add WMAS to getAssetTokens (#421)
Browse files Browse the repository at this point in the history
  • Loading branch information
pivilartisant authored May 10, 2024
1 parent fe692cf commit 3c4be24
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/components/Icons/Svg/FT/tokenIcons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { USDCSvg } from './USDCSvg';
import { WEthMassaSvg } from './WEthMassaSvg';
import { WEthSvg } from './WEthSvg';
import { MassaLogo } from '../Massa';
import { WMasSvg } from './WMasSvg';

export function getAssetIcons(
symbolEVM: string,
Expand All @@ -27,6 +28,7 @@ export function getAssetIcons(
WETH: tokens.WETH,
USDC: tokens.USDC,
DAI: tokens.tDAI,
WMAS: tokens.WMAS,
MAS: <MassaLogo size={size} className={customClass} />,
};
return icons[symbolEVM as keyof typeof icons];
Expand Down Expand Up @@ -55,6 +57,11 @@ function getTokenIcons(
<USDCSvg size={size} />
</div>
),
WMAS: (
<div className={customClass}>
<WMasSvg size={size} />
</div>
),
};
} else if (isMainnet) {
return {
Expand All @@ -73,6 +80,11 @@ function getTokenIcons(
<USDCMassaSvg size={size} />
</div>
),
WMAS: (
<div className={customClass}>
<WMasSvg size={size} />
</div>
),
};
}
return {
Expand All @@ -91,5 +103,10 @@ function getTokenIcons(
<SepoliaUSDCSvg size={size} />
</div>
),
WMAS: (
<div className={customClass}>
<WMasSvg size={size} />
</div>
),
};
}

0 comments on commit 3c4be24

Please sign in to comment.