Skip to content

Commit

Permalink
Merge pull request #476 from DeXter-on-Radix/fix-missing-icons
Browse files Browse the repository at this point in the history
fix missing coin icons
  • Loading branch information
nguvictor authored Jul 14, 2024
2 parents 02d2966 + f801a34 commit 4393a54
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Binary file added public/coins/EDG-100x100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/coins/HNY-100x100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 11 additions & 1 deletion src/app/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,17 @@ export function numberOrEmptyInput(event: string) {
export function updateIconIfNeeded(token: adex.TokenInfo): TokenInfo {
const iconUrl =
token.symbol === "DEXTR"
? "https://assets.coingecko.com/coins/images/34946/standard/DEXTRLogo.jpg"
? // use asset from coingecko to prevent ipfs failure
"https://assets.coingecko.com/coins/images/34946/standard/DEXTRLogo.jpg"
: token.symbol === "RDK"
? // fix wrong icon URL in metadata ofRDK on ledger, see https://t.me/radix_dlt/716425
"https://radket.shop/img/logo.svg"
: token.symbol === "EDG"
? // use smaller version to save bandwidth
"coins/EDG-100x100.png"
: token.symbol === "HNY"
? // use smaller version to save bandwidth
"coins/HNY-100x100.png"
: token.iconUrl;

return {
Expand Down

0 comments on commit 4393a54

Please sign in to comment.