diff --git a/src/constants/networks/matic.ts b/src/constants/networks/matic.ts index cab6e853cd..ef10056686 100644 --- a/src/constants/networks/matic.ts +++ b/src/constants/networks/matic.ts @@ -69,7 +69,7 @@ const maticInfo: EVMNetworkInfo = { '0x3D6AfE2fB73fFEd2E3dD00c501A174554e147a43', '0xf2BcDf38baA52F6b0C1Db5B025DfFf01Ae1d6dBd', ], - 'farmV2.1S': ['0x15390f6939AA48F9796233E6144f1218721265Bb'], + 'farmV2.1S': [], }, limitOrder: '*', averageBlockTimeInSeconds: 2.6, diff --git a/src/hooks/useElasticLegacy.ts b/src/hooks/useElasticLegacy.ts index 204b1e02e4..fce58b71b2 100644 --- a/src/hooks/useElasticLegacy.ts +++ b/src/hooks/useElasticLegacy.ts @@ -362,8 +362,8 @@ export const useRemoveLiquidityLegacy = ( const { library } = useWeb3React() const { token0, token1, position, usd } = parsePosition(item, chainId, tokenPrices) - const feeValue0 = CurrencyAmount.fromRawAmount(unwrappedToken(token0), feeRewards[item.id][0]) - const feeValue1 = CurrencyAmount.fromRawAmount(unwrappedToken(token1), feeRewards[item.id][1]) + const feeValue0 = CurrencyAmount.fromRawAmount(unwrappedToken(token0), feeRewards[item.id]?.[0] || '0') + const feeValue1 = CurrencyAmount.fromRawAmount(unwrappedToken(token1), feeRewards[item.id]?.[1] || '0') const [allowedSlippage] = useUserSlippageTolerance() const deadline = useTransactionDeadline()