Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
get the chainId specific GNO (#2143)
Browse files Browse the repository at this point in the history
  • Loading branch information
W3stside authored Jan 13, 2022
1 parent 2deafd3 commit f3d027b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/custom/pages/Claim/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,9 @@ import useTransactionConfirmationModal from 'hooks/useTransactionConfirmationMod

import { GNO } from 'constants/tokens'
import { CurrencyAmount, MaxUint256 } from '@uniswap/sdk-core'
import { SupportedChainId } from 'constants/chains'
import { CheckCircle } from 'react-feather'
import Row from 'components/Row'

// Max approve amount
const MAX_GNO_UINT256 = CurrencyAmount.fromRawAmount(GNO[SupportedChainId.RINKEBY], MaxUint256)
const GNO_CLAIM_APPROVE_MESSAGE = 'Approving GNO for investing in vCOW'

export default function Claim() {
Expand Down Expand Up @@ -260,7 +257,7 @@ export default function Claim() {
() => openModal(GNO_CLAIM_APPROVE_MESSAGE, OperationType.APPROVE_TOKEN),
closeModal,
// approve max unit256 amount
MAX_GNO_UINT256
chainId ? CurrencyAmount.fromRawAmount(GNO[chainId], MaxUint256) : undefined
)

const handleApproveGno = () => approveCallback()
Expand Down

0 comments on commit f3d027b

Please sign in to comment.