Skip to content

Commit

Permalink
chore: Remove farm prop
Browse files Browse the repository at this point in the history
  • Loading branch information
memoyil committed Dec 19, 2024
1 parent e203506 commit 4db1516
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions apps/web/src/components/ZapLiquidityWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import CurrencySearchModal from 'components/SearchModal/CurrencySearchModal'
import { CommonBasesType } from 'components/SearchModal/types'
import { isAddressEqual } from 'utils'
import WalletModalManager from 'components/WalletModalManager'
import { useMasterchefV3 } from 'hooks/useContract'

interface ZapLiquidityProps {
tickLower?: number
Expand Down Expand Up @@ -85,10 +84,6 @@ export const ZapLiquidityWidget: React.FC<ZapLiquidityProps> = ({

const handleOnWalletConnect = useCallback(() => setIsWalletModalOpen(true), [])

const masterChefV3 = useMasterchefV3()

const masterChefV3Addresses = useMemo(() => (masterChefV3 ? [masterChefV3.address] : undefined), [masterChefV3])

const handleOnClick = useCallback(() => {
setDepositTokens(
[
Expand Down Expand Up @@ -235,7 +230,6 @@ export const ZapLiquidityWidget: React.FC<ZapLiquidityProps> = ({
initAmounts={amounts}
initDepositTokens={depositTokens}
poolAddress={poolAddress ?? '0x'}
farmContractAddresses={masterChefV3Addresses}
onConnectWallet={handleOnWalletConnect}
onAddTokens={handleAddTokens}
onOpenTokenSelectModal={onPresentCurrencyModal}
Expand Down

0 comments on commit 4db1516

Please sign in to comment.