From 44c744c72e971900409d932db7f616f2d1e5882e Mon Sep 17 00:00:00 2001 From: Hancheng Zhou Date: Mon, 21 Jun 2021 17:36:06 +0800 Subject: [PATCH] fix: variable --- packages/maskbook/src/plugins/ITO/UI/ITO.tsx | 4 ++-- packages/maskbook/src/plugins/ITO/UI/PoolInList.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/maskbook/src/plugins/ITO/UI/ITO.tsx b/packages/maskbook/src/plugins/ITO/UI/ITO.tsx index f8514a2324eb..0cd77a672146 100644 --- a/packages/maskbook/src/plugins/ITO/UI/ITO.tsx +++ b/packages/maskbook/src/plugins/ITO/UI/ITO.tsx @@ -11,7 +11,7 @@ import { useChainIdValid, useAccount, useConstant, - CONSTANTS, + TOKEN_CONSTANTS, isSameAddress, getChainDetailed, } from '@dimensiondev/web3-shared' @@ -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 ( <> diff --git a/packages/maskbook/src/plugins/ITO/UI/PoolInList.tsx b/packages/maskbook/src/plugins/ITO/UI/PoolInList.tsx index f1a1c0c8c2af..7b14315fddce 100644 --- a/packages/maskbook/src/plugins/ITO/UI/PoolInList.tsx +++ b/packages/maskbook/src/plugins/ITO/UI/PoolInList.tsx @@ -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' @@ -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)