diff --git a/src/pages/IncreaseLiquidity/index.tsx b/src/pages/IncreaseLiquidity/index.tsx index 6c3397b66a..35d144d5cb 100644 --- a/src/pages/IncreaseLiquidity/index.tsx +++ b/src/pages/IncreaseLiquidity/index.tsx @@ -108,12 +108,14 @@ export default function IncreaseLiquidity() { tokenId ? BigNumber.from(tokenId) : undefined, ) + const removed = existingPositionDetails?.liquidity?.eq(0) + const owner = useSingleCallResult(!!tokenId ? positionManager : null, 'ownerOf', [tokenId]).result?.[0] const ownsNFT = owner === account || existingPositionDetails?.operator === account const ownByFarm = isEVM ? (networkInfo as EVMNetworkInfo).elastic.farms.flat().includes(isAddressString(chainId, owner)) || - (networkInfo as EVMNetworkInfo).elastic.farmV2S?.map(item => item.toLowerCase()).includes(owner.toLowerCase()) + (networkInfo as EVMNetworkInfo).elastic.farmV2S?.map(item => item.toLowerCase()).includes(owner?.toLowerCase()) : false const { position: existingPosition } = useProAmmDerivedPositionInfo(existingPositionDetails) @@ -499,9 +501,11 @@ export default function IncreaseLiquidity() { - #{tokenId?.toString()} + + #{tokenId?.toString()} + {/* dont show removed when increasing liquidity*/} - +