Skip to content

Commit

Permalink
hide fusdc deprecated gauges from vote (#1367)
Browse files Browse the repository at this point in the history
  • Loading branch information
hammeiam authored and nkrulikovsky committed May 8, 2023
1 parent 43f0bf3 commit e4e6a3a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pages/VeSDL/OnChainVote.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit e4e6a3a

Please sign in to comment.