Skip to content

Commit

Permalink
[fix] set ECG as native token for SPS chain
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewLeeCHCH committed Dec 12, 2022
1 parent fdbfe10 commit b47a6e8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/transfer/TokenList.tsx
Expand Up @@ -406,6 +406,10 @@ const TokenList: FC<IProps> = ({ onSelectToken, visible, onCancel }) => {
// return true
// }

if (targetChainId === 13000 && tokenSymbol === "ECG") {
return true;
}

return false;
};

Expand Down
2 changes: 2 additions & 0 deletions src/hooks/useNativeETHToken.ts
Expand Up @@ -58,6 +58,8 @@ export const useNativeETHToken = (srcChain: Chain | undefined, tokenInfo: TokenI
nativeETHToken = true;
} else if (srcChain.id === 16350 && tokenInfo.token.symbol === "PEEL") {
nativeETHToken = true;
} else if (srcChain.id === 13000 && tokenInfo.token.symbol === "ECG") {
nativeETHToken = true;
}
// else if (srcChain.id === 73771 && tokenInfo.token.symbol === "TUS") {
// nativeETHToken = true;
Expand Down
4 changes: 4 additions & 0 deletions src/views/History.tsx
Expand Up @@ -1287,6 +1287,10 @@ const History = (props: IProps): JSX.Element => {
shouldDisplayMetaMaskIcon = false;
}

if (item?.dst_received_info.chain.id === 13000 && item?.src_send_info?.token.symbol === "ECG") {
shouldDisplayMetaMaskIcon = false;
}

// if (item?.dst_received_info.chain.id === 73771 && item?.src_send_info?.token.symbol === "TUS") {
// shouldDisplayMetaMaskIcon = false;
// }
Expand Down

0 comments on commit b47a6e8

Please sign in to comment.