Skip to content

Commit

Permalink
update TERRA_ASSETS_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnuj committed Aug 24, 2023
1 parent 796e802 commit 6dde8e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/App/useApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
]
Expand Down Expand Up @@ -80,7 +80,7 @@ const useApp = (): {
ContractStore.initOnlyTerraWhiteList
)
const fetchAssets = async (path: TerraAssetsPathEnum): Promise<any> => {
return (await fetch(`${NETWORK.TERRA_ASSETS_URL}${path}`)).json()
return (await fetch(`${NETWORK.TERRA_ASSETS_URL}/${path}`)).json()
}

const getContractAddress = async (): Promise<void> => {
Expand Down
2 changes: 1 addition & 1 deletion src/consts/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<BigNumber> => {
try {
Expand Down

0 comments on commit 6dde8e5

Please sign in to comment.