From 4da88f5e8b327f9dfdce05a252eefc32f75cc42c Mon Sep 17 00:00:00 2001 From: FBrinkkemper Date: Thu, 28 Mar 2024 11:23:10 +0100 Subject: [PATCH] Pk/add susde to pf (#3738) * add susde and fix icon * update tokens --------- Co-authored-by: Piotr Konowrocki --- features/productHub/meta.ts | 57 +++++++++++++++---- .../product-hub/helpers/get-token-group.ts | 7 +++ theme/icons/susde.tsx | 57 ++++++++++--------- 3 files changed, 83 insertions(+), 38 deletions(-) diff --git a/features/productHub/meta.ts b/features/productHub/meta.ts index e495241fff..6b6a14a739 100644 --- a/features/productHub/meta.ts +++ b/features/productHub/meta.ts @@ -75,7 +75,7 @@ export const productHubTokenOptions: { [key: string]: HeaderSelectorOption } = { }, BTC: { title: 'Bitcoin', - description: 'WBTC/TBTC', + description: 'WBTC', value: 'BTC', icon: btc_circle_color, }, @@ -97,11 +97,35 @@ export const productHubTokenOptions: { [key: string]: HeaderSelectorOption } = { value: 'YFI', icon: getToken('YFI').iconCircle, }, - GHO: { - title: 'GHO stablecoin', - description: 'GHO', - value: 'GHO', - icon: getToken('GHO').iconCircle, + SUSDE: { + title: 'Ethena Staked USDe', + description: 'SUSDE', + value: 'SUSDE', + icon: getToken('SUSDE').iconCircle, + }, + USDT: { + title: 'USDT stablecoin', + description: 'USDT', + value: 'USDT', + icon: getToken('USDT').iconCircle, + }, + MKR: { + title: 'MKR MakerDAO', + description: 'MKR', + value: 'MKR', + icon: getToken('MKR').iconCircle, + }, + LINK: { + title: 'Chainlink LINK', + description: 'LINK', + value: 'LINK', + icon: getToken('LINK').iconCircle, + }, + LDO: { + title: 'Lido LDO', + description: 'LDO', + value: 'LDO', + icon: getToken('LDO').iconCircle, }, } @@ -118,9 +142,13 @@ export const productHubOptionsMapBase: { ETH: productHubTokenOptions.ETH, BTC: productHubTokenOptions.BTC, USDC: productHubTokenOptions.USDC, + USDT: productHubTokenOptions.USDT, DAI: productHubTokenOptions.DAI, + SUSDE: productHubTokenOptions.SUSDE, + MKR: productHubTokenOptions.MKR, + LINK: productHubTokenOptions.LINK, + LDO: productHubTokenOptions.LDO, YFI: productHubTokenOptions.YFI, - GHO: productHubTokenOptions.GHO, }, }, multiply: { @@ -130,9 +158,13 @@ export const productHubOptionsMapBase: { ETH: productHubTokenOptions.ETH, BTC: productHubTokenOptions.BTC, USDC: productHubTokenOptions.USDC, - YFI: productHubTokenOptions.YFI, + USDT: productHubTokenOptions.USDT, DAI: productHubTokenOptions.DAI, - GHO: productHubTokenOptions.GHO, + SUSDE: productHubTokenOptions.SUSDE, + MKR: productHubTokenOptions.MKR, + LINK: productHubTokenOptions.LINK, + LDO: productHubTokenOptions.LDO, + YFI: productHubTokenOptions.YFI, }, }, earn: { @@ -142,8 +174,13 @@ export const productHubOptionsMapBase: { ETH: productHubTokenOptions.ETH, BTC: productHubTokenOptions.BTC, USDC: productHubTokenOptions.USDC, + USDT: productHubTokenOptions.USDT, DAI: productHubTokenOptions.DAI, - GHO: productHubTokenOptions.GHO, + SUSDE: productHubTokenOptions.SUSDE, + MKR: productHubTokenOptions.MKR, + LINK: productHubTokenOptions.LINK, + LDO: productHubTokenOptions.LDO, + YFI: productHubTokenOptions.YFI, }, }, } diff --git a/handlers/product-hub/helpers/get-token-group.ts b/handlers/product-hub/helpers/get-token-group.ts index 0151e872d7..8d1fc04506 100644 --- a/handlers/product-hub/helpers/get-token-group.ts +++ b/handlers/product-hub/helpers/get-token-group.ts @@ -9,6 +9,12 @@ export function getTokenGroup(token: string): string { case 'STYETH': case 'WETH': case 'WSTETH': + case 'OSETH': + case 'XETH': + case 'DETH': + case 'APXETH': + case 'WEETH': + case 'EZETH': case 'YIELDETH': return 'ETH' case 'TBTC': @@ -18,6 +24,7 @@ export function getTokenGroup(token: string): string { case 'SDAI': return 'DAI' case 'USDBC': + case 'USDC.E': return 'USDC' default: return token diff --git a/theme/icons/susde.tsx b/theme/icons/susde.tsx index 4e0adbe5f0..b491ad8bdd 100644 --- a/theme/icons/susde.tsx +++ b/theme/icons/susde.tsx @@ -1,61 +1,62 @@ import React from 'react' export const susde = { path: ( - - + <> + - - + + - - + + - + ), + viewBox: '1 1 30 30', }