Skip to content

Commit

Permalink
fix: env var
Browse files Browse the repository at this point in the history
  • Loading branch information
chidg committed Aug 26, 2024
1 parent cd6b72d commit 87566cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ import { atomFamily } from 'jotai/utils'
import { createPublicClient, encodeFunctionData, erc20Abi, http, isAddress } from 'viem'
import { mainnet, bsc, arbitrum, optimism, blast, polygon } from 'viem/chains'

const APIKEY = import.meta.env.REACT_APP_SIMPLESWAP_API_KEY
const APIKEY = import.meta.env.SIMPLESWAP_API_KEY
if (!APIKEY && import.meta.env.DEV) throw new Error('env var REACT_APP_CHAINDATA not set')
const PROTOCOL = 'simpleswap'

type SimpleSwapCurrency = {
Expand Down
2 changes: 1 addition & 1 deletion apps/portal/src/vite-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ interface ImportMetaEnv {
REACT_APP_BASEROW_CROWDLOANS_AUTH: string
REACT_APP_LIDO_REWARDS_ADDRESS: string
REACT_APP_QUEST_API?: string
REACT_APP_SIMPLESWAP_API_KEY: string
SIMPLESWAP_API_KEY: string
}

declare namespace JSX {
Expand Down

0 comments on commit 87566cf

Please sign in to comment.