make gatekeeper dependant on the actually stored address on staking

Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
Uncle Fatso 2026-04-10 15:58:52 +03:00
parent e102d819a0
commit 5bb5b7d7e0
Signed by: f4ts0
GPG Key ID: 565F4F2860226EBB
2 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "ghost-dao-interface", "name": "ghost-dao-interface",
"private": true, "private": true,
"version": "0.7.14", "version": "0.7.15",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",

View File

@ -5,7 +5,7 @@ import toast from "react-hot-toast";
import { config } from "../../config"; import { config } from "../../config";
import { isNetworkLegacyType } from "../../constants"; 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 StakingAbi } from "../../abi/GhostStaking.json";
import { abi as GatekeeperAbi } from "../../abi/GhostGatekeeper.json"; import { abi as GatekeeperAbi } from "../../abi/GhostGatekeeper.json";
@ -23,9 +23,9 @@ export const useGatekeeperApy = (chainId) => {
const { data: metadata, error } = useReadContract({ const { data: metadata, error } = useReadContract({
abi: GatekeeperAbi, abi: GatekeeperAbi,
address: GATEKEEPER_ADDRESSES[chainId], address: gatekeeper,
functionName: "gatekeeperMetadata", functionName: "gatekeeperMetadata",
scopeKey: `gatekeeperMetadata-${chainId}`, scopeKey: `gatekeeperMetadata-${chainId}-${gatekeeper}`,
chainId: chainId, chainId: chainId,
}); });