From 46cd3bb06f7f92119c72e77742d3dfc3bfd8e824 Mon Sep 17 00:00:00 2001 From: Hayden Shively <17186559+haydenshively@users.noreply.github.com> Date: Sun, 4 Feb 2024 23:24:21 -0600 Subject: [PATCH] Add POOL and SNX tokens --- shared/src/assets/svg/tokens/index.tsx | 4 +++ shared/src/assets/svg/tokens/pooltogether.svg | 10 +++++++ shared/src/assets/svg/tokens/snx.svg | 28 +++++++++++++++++++ shared/src/data/TokenData.ts | 22 +++++++++++++++ 4 files changed, 64 insertions(+) create mode 100644 shared/src/assets/svg/tokens/pooltogether.svg create mode 100644 shared/src/assets/svg/tokens/snx.svg diff --git a/shared/src/assets/svg/tokens/index.tsx b/shared/src/assets/svg/tokens/index.tsx index a36f28c9..c464ab22 100644 --- a/shared/src/assets/svg/tokens/index.tsx +++ b/shared/src/assets/svg/tokens/index.tsx @@ -16,8 +16,10 @@ import MaticLogo from './matic.svg'; import MimLogo from './mim.svg'; import OpLogo from './op.svg'; import PerpLogo from './perp.svg'; +import PoolTogetherLogo from './pooltogether.svg'; import RaiLogo from './rai.svg'; import RplLogo from './rpl.svg'; +import SnxLogo from './snx.svg'; import TribeLogo from './tribe.svg'; import UniLogo from './uni.svg'; import UnknownTokenLogo from './unknown_token.svg'; @@ -44,6 +46,8 @@ export { MaticLogo, OpLogo, PerpLogo, + PoolTogetherLogo, + SnxLogo, UsdcLogo, WbtcLogo, WethLogo, diff --git a/shared/src/assets/svg/tokens/pooltogether.svg b/shared/src/assets/svg/tokens/pooltogether.svg new file mode 100644 index 00000000..f92fddd0 --- /dev/null +++ b/shared/src/assets/svg/tokens/pooltogether.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/shared/src/assets/svg/tokens/snx.svg b/shared/src/assets/svg/tokens/snx.svg new file mode 100644 index 00000000..c00608ea --- /dev/null +++ b/shared/src/assets/svg/tokens/snx.svg @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + diff --git a/shared/src/data/TokenData.ts b/shared/src/data/TokenData.ts index ce6db7e4..8047228c 100644 --- a/shared/src/data/TokenData.ts +++ b/shared/src/data/TokenData.ts @@ -21,7 +21,9 @@ import { MimLogo, OpLogo, PerpLogo, + PoolTogetherLogo, RplLogo, + SnxLogo, UniLogo, UsdcLogo, UsdtLogo, @@ -256,6 +258,24 @@ const WSTETH_OPTIMISM = new Token( WstEthLogo ); +const POOLTOGETHER_OPTIMISM = new Token( + optimism.id, + '0x395ae52bb17aef68c2888d941736a71dc6d4e125', + 18, + 'POOL', + 'PoolTogether', + PoolTogetherLogo +); + +const SNX_OPTIMISM = new Token( + optimism.id, + '0x8700daec35af8ff88c16bdf0418774cb3d7599b4', + 18, + 'SNX', + 'Synthetix Network Token', + SnxLogo +); + const DAI_ARBITRUM = new Token( arbitrum.id, '0xda10009cbd5d07dd0cecc66161fc93d7c9000da1', @@ -395,6 +415,8 @@ const TOKEN_DATA: { [chainId: number]: { [address: Address]: Token } } = { [LYRA_OPTIMISM.address]: LYRA_OPTIMISM, [OP_OPTIMISM.address]: OP_OPTIMISM, [PERP_OPTIMISM.address]: PERP_OPTIMISM, + [POOLTOGETHER_OPTIMISM.address]: POOLTOGETHER_OPTIMISM, + [SNX_OPTIMISM.address]: SNX_OPTIMISM, [UNI_OPTIMISM.address]: UNI_OPTIMISM, [USDC_OPTIMISM.address]: USDC_OPTIMISM, [USDT_OPTIMISM.address]: USDT_OPTIMISM,