From 41b56f87b548423d553d6061e5db7670d954bc40 Mon Sep 17 00:00:00 2001 From: David Hamme Date: Fri, 5 May 2023 16:29:30 -0500 Subject: [PATCH] hide fusdc deprecated gauges from vote --- src/pages/VeSDL/OnChainVote.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pages/VeSDL/OnChainVote.tsx b/src/pages/VeSDL/OnChainVote.tsx index 8af01e54f..6557a970c 100644 --- a/src/pages/VeSDL/OnChainVote.tsx +++ b/src/pages/VeSDL/OnChainVote.tsx @@ -15,6 +15,7 @@ import { enqueuePromiseToast, enqueueToast } from "../../components/Toastify" import ArrowDownIcon from "@mui/icons-material/KeyboardArrowDown" import { BigNumber } from "ethers" +import { DEAD_FUSDC_GAUGE_ADDRESS } from "../../constants" import { GaugeController } from "../../../types/ethers-contracts/GaugeController" import { LPTokenAddressToGauge } from "../../utils/gauges" import VoteHistory from "./Votes" @@ -81,6 +82,11 @@ export default function OnChainVote({ } }) ;(sidechainGaugesInfo?.gauges || []).forEach(({ address, displayName }) => { + if ( + address === DEAD_FUSDC_GAUGE_ADDRESS || + address === "0x230fa812c525355fa5f7cee64805ea16128d6474" // fusdc gauge v2 + ) + return gaugeNameObj[address] = { address, gaugeName: displayName,