Skip to content

Commit

Permalink
fix: variable
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouhanseng committed Jun 21, 2021
1 parent 7d38318 commit 44c744c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/maskbook/src/plugins/ITO/UI/ITO.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
useChainIdValid,
useAccount,
useConstant,
CONSTANTS,
TOKEN_CONSTANTS,
isSameAddress,
getChainDetailed,
} from '@dimensiondev/web3-shared'
Expand Down Expand Up @@ -184,7 +184,7 @@ interface TokenItemProps {

const TokenItem = ({ price, token, exchangeToken }: TokenItemProps) => {
const classes = useStyles({})
const NATIVE_TOKEN_ADDRESS = useConstant(CONSTANTS, 'NATIVE_TOKEN_ADDRESS')
const NATIVE_TOKEN_ADDRESS = useConstant(TOKEN_CONSTANTS, 'NATIVE_TOKEN_ADDRESS')

return (
<>
Expand Down
4 changes: 2 additions & 2 deletions packages/maskbook/src/plugins/ITO/UI/PoolInList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
import BigNumber from 'bignumber.js'
import { useI18N } from '../../../utils'
import ActionButton from '../../../extension/options-page/DashboardComponents/ActionButton'
import { useAccount, useConstant, CONSTANTS, isSameAddress, getChainDetailed } from '@dimensiondev/web3-shared'
import { useAccount, useConstant, TOKEN_CONSTANTS, isSameAddress, getChainDetailed } from '@dimensiondev/web3-shared'
import { useAvailabilityComputed } from '../hooks/useAvailabilityComputed'
import { usePoolTradeInfo } from '../hooks/usePoolTradeInfo'
import { TokenIcon } from '../../../extension/options-page/DashboardComponents/TokenIcon'
Expand Down Expand Up @@ -109,7 +109,7 @@ export function PoolInList(props: PoolInListProps) {
const classes = useStyles()
const { pool, exchange_in_volumes, exchange_out_volumes, onSend, onWithdraw } = props

const NATIVE_TOKEN_ADDRESS = useConstant(CONSTANTS, 'NATIVE_TOKEN_ADDRESS')
const NATIVE_TOKEN_ADDRESS = useConstant(TOKEN_CONSTANTS, 'NATIVE_TOKEN_ADDRESS')
const account = useAccount()
const { computed: availabilityComputed, loading: loadingAvailability } = useAvailabilityComputed(pool)
const { value: tradeInfo, loading: loadingTradeInfo } = usePoolTradeInfo(pool.pid, account)
Expand Down

0 comments on commit 44c744c

Please sign in to comment.