From 5bb5b7d7e061d5da6e04ec8fa103409d09a63f74 Mon Sep 17 00:00:00 2001 From: Uncle Fatso Date: Fri, 10 Apr 2026 15:58:52 +0300 Subject: [PATCH] make gatekeeper dependant on the actually stored address on staking Signed-off-by: Uncle Fatso --- package.json | 2 +- src/hooks/staking/index.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 552782a..f0d8d95 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ghost-dao-interface", "private": true, - "version": "0.7.14", + "version": "0.7.15", "type": "module", "scripts": { "dev": "vite", diff --git a/src/hooks/staking/index.js b/src/hooks/staking/index.js index a5ad3e6..b667590 100644 --- a/src/hooks/staking/index.js +++ b/src/hooks/staking/index.js @@ -5,7 +5,7 @@ import toast from "react-hot-toast"; import { config } from "../../config"; import { isNetworkLegacyType } from "../../constants"; -import { STAKING_ADDRESSES, GATEKEEPER_ADDRESSES } from "../../constants/addresses"; +import { STAKING_ADDRESSES } from "../../constants/addresses"; import { abi as StakingAbi } from "../../abi/GhostStaking.json"; import { abi as GatekeeperAbi } from "../../abi/GhostGatekeeper.json"; @@ -23,9 +23,9 @@ export const useGatekeeperApy = (chainId) => { const { data: metadata, error } = useReadContract({ abi: GatekeeperAbi, - address: GATEKEEPER_ADDRESSES[chainId], + address: gatekeeper, functionName: "gatekeeperMetadata", - scopeKey: `gatekeeperMetadata-${chainId}`, + scopeKey: `gatekeeperMetadata-${chainId}-${gatekeeper}`, chainId: chainId, });