From 5ffc16d51eb4777b1600c4fde84b6d73c856eb36 Mon Sep 17 00:00:00 2001 From: yivlad Date: Wed, 17 Apr 2024 12:24:10 +0200 Subject: [PATCH 1/2] Add support for USDC, USDT, sDAI and EURe on Gnosis --- public/icons/tokens/eure.svg | 1 + src/ui-config/reservePatches.ts | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 public/icons/tokens/eure.svg diff --git a/public/icons/tokens/eure.svg b/public/icons/tokens/eure.svg new file mode 100644 index 000000000..f299a426c --- /dev/null +++ b/public/icons/tokens/eure.svg @@ -0,0 +1 @@ + diff --git a/src/ui-config/reservePatches.ts b/src/ui-config/reservePatches.ts index 2dff83090..2c5528b33 100644 --- a/src/ui-config/reservePatches.ts +++ b/src/ui-config/reservePatches.ts @@ -77,6 +77,7 @@ export const SYMBOL_NAME_MAP: { [key: string]: string } = { ZRX: '0x Coin', '1INCH': '1inch Network', LUSD: 'LUSD Stablecoin', + EURE: 'Monerium EURO', }; export function fetchIconSymbolAndName({ @@ -104,6 +105,15 @@ export function fetchIconSymbolAndName({ ) { return { iconSymbol: 'UST', name: 'UST (Wormhole)', symbol }; } + if (name === 'USD//C on xDai') { + return { iconSymbol: 'USDC', name: 'Bridged Circle USD', symbol }; + } + if (name === 'Tether USD on xDai ') { + return { iconSymbol: 'USDT', name: 'Bridged Tether USD', symbol }; + } + if (name === 'Savings xDai') { + return { iconSymbol: 'sDAI', name: 'Savings DAI', symbol }; + } const unifiedSymbol = SYMBOL_MAP[symbol] || symbol; return { From c76456146ba37a69d3cdb9979df1817b4f3b18c8 Mon Sep 17 00:00:00 2001 From: yivlad Date: Wed, 17 Apr 2024 12:55:56 +0200 Subject: [PATCH 2/2] Revert renames --- src/ui-config/reservePatches.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/ui-config/reservePatches.ts b/src/ui-config/reservePatches.ts index 2c5528b33..2dff83090 100644 --- a/src/ui-config/reservePatches.ts +++ b/src/ui-config/reservePatches.ts @@ -77,7 +77,6 @@ export const SYMBOL_NAME_MAP: { [key: string]: string } = { ZRX: '0x Coin', '1INCH': '1inch Network', LUSD: 'LUSD Stablecoin', - EURE: 'Monerium EURO', }; export function fetchIconSymbolAndName({ @@ -105,15 +104,6 @@ export function fetchIconSymbolAndName({ ) { return { iconSymbol: 'UST', name: 'UST (Wormhole)', symbol }; } - if (name === 'USD//C on xDai') { - return { iconSymbol: 'USDC', name: 'Bridged Circle USD', symbol }; - } - if (name === 'Tether USD on xDai ') { - return { iconSymbol: 'USDT', name: 'Bridged Tether USD', symbol }; - } - if (name === 'Savings xDai') { - return { iconSymbol: 'sDAI', name: 'Savings DAI', symbol }; - } const unifiedSymbol = SYMBOL_MAP[symbol] || symbol; return {