Skip to content

Commit

Permalink
ARBITRUM: fix currency to ETH
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyAdoniev committed Jul 30, 2023
1 parent 002f951 commit 1c2bfae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 1 addition & 3 deletions src/components/ExplorerEvents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,7 @@ export const ExplorerEvents: FC<{ status?: string }> = ({ status = "" }) => {
(chain) => chain?.name?.toLowerCase() === chainName?.toLowerCase()
);
const rate = (chain && rates[chain.id]?.usd) || 1;
// if (chainName === "TON") {
// console.log({rate , chainName});
// }

return rate;
};

Expand Down
6 changes: 3 additions & 3 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const currency: any = {
"28": "ICP",
"27": "TON",
"35": "CMP",
"37": "ARB",
"37": "ETH",
"31": "Near",
"26": "SOL",
"29": "HBAR",
Expand Down Expand Up @@ -147,7 +147,7 @@ export const chainNoncetoName: any = {
"27": "Ton",
"35": "Caduceus",
"36": "OKC",
"37": "Arbitrum Nova",
"37": "Arbitrum",
"31": "Near",
"26": "Solana",
"29": "Hedera",
Expand Down Expand Up @@ -210,7 +210,7 @@ export const chains = [
},
{ id: "caduceus", name: "Caduceus", icon: Caduceus },
{ id: "oec-token", name: "OKC", icon: OKC },
{ id: "arbitrum", name: "Arbitrum Nova", icon: Arbitrum },
{ id: "ethereum", name: "arbitrum", icon: Arbitrum },
{ id: "near", name: "Near", icon: NearWallet },
{ id: "solana", name: "Solana", icon: Solana, notConvert: true, dec: -9 },
{ id: "hedera-hashgraph", name: "Hedera", icon: Hedera, dec: -8 },
Expand Down
4 changes: 1 addition & 3 deletions src/pages/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,7 @@ export const Search = (props: any) => {
(chain) => chain?.name?.toLowerCase() === chainName?.toLowerCase()
);
const rate = (chain && rates[chain.id]?.usd) || 1;
// if (chainName === "TON") {
// console.log({rate , chainName});
// }

return rate;
};

Expand Down

0 comments on commit 1c2bfae

Please sign in to comment.