From 6dde8e5ad78cd6b0e2d921c88aaf8d1e3eada7df Mon Sep 17 00:00:00 2001 From: gregnuj Date: Thu, 24 Aug 2023 17:04:21 -0500 Subject: [PATCH] update TERRA_ASSETS_URL --- src/App/useApp.ts | 12 ++++++------ src/consts/network.ts | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/App/useApp.ts b/src/App/useApp.ts index 5324e93..d0bd1ca 100644 --- a/src/App/useApp.ts +++ b/src/App/useApp.ts @@ -14,31 +14,31 @@ const defaultList: AssetType[] = [ { symbol: 'LUNC', name: 'Luna Classic', - logoURI: 'https://assets.terra.money/icon/svg/Luna.svg', + logoURI: `${NETWORK.TERRA_ASSETS_URL}/icon/svg/Luna.svg`, terraToken: AssetNativeDenomEnum.uluna, }, { symbol: AssetSymbolEnum.UST, name: 'Terra Classic USD', - logoURI: 'https://assets.terra.money/icon/60/UST.png', + logoURI: `${NETWORK.TERRA_ASSETS_URL}/icon/60/UST.png`, terraToken: AssetNativeDenomEnum.uusd, }, { symbol: AssetSymbolEnum.KRT, name: 'Terra Classic KRW', - logoURI: 'https://assets.terra.money/icon/60/KRT.png', + logoURI: `${NETWORK.TERRA_ASSETS_URL}/icon/60/KRT.png`, terraToken: AssetNativeDenomEnum.ukrw, }, { symbol: AssetSymbolEnum.SDT, name: 'Terra Classic SDR', - logoURI: 'https://assets.terra.money/icon/60/SDT.png', + logoURI: `${NETWORK.TERRA_ASSETS_URL}/icon/60/SDT.png`, terraToken: AssetNativeDenomEnum.usdr, }, { symbol: AssetSymbolEnum.MNT, name: 'Terra Classic MNT', - logoURI: 'https://assets.terra.money/icon/60/MNT.png', + logoURI: `${NETWORK.TERRA_ASSETS_URL}/icon/60/MNT.png`, terraToken: AssetNativeDenomEnum.umnt, }, ] @@ -80,7 +80,7 @@ const useApp = (): { ContractStore.initOnlyTerraWhiteList ) const fetchAssets = async (path: TerraAssetsPathEnum): Promise => { - return (await fetch(`${NETWORK.TERRA_ASSETS_URL}${path}`)).json() + return (await fetch(`${NETWORK.TERRA_ASSETS_URL}/${path}`)).json() } const getContractAddress = async (): Promise => { diff --git a/src/consts/network.ts b/src/consts/network.ts index 1ec2a1a..22db2c2 100644 --- a/src/consts/network.ts +++ b/src/consts/network.ts @@ -204,7 +204,7 @@ const KEPLR_EXTENSION = 'https://chrome.google.com/webstore/detail/keplr/dmkamcknogkgcdfhhbddcghachkejeap' const CHROME = 'https://google.com/chrome' -const TERRA_ASSETS_URL = 'https://assets.terra.money' +const TERRA_ASSETS_URL = process.env.REACT_APP_TERRA_ASSETS_URL || 'https://assets.terra.dev' const getEtherPricePerUst = async (): Promise => { try {