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

[Claim] Fix GNO hardcoded to Rinkeby #2143

Merged
merged 1 commit into from
Jan 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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