make gatekeeper dependant on the actually stored address on staking
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
e102d819a0
commit
5bb5b7d7e0
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "ghost-dao-interface",
|
||||
"private": true,
|
||||
"version": "0.7.14",
|
||||
"version": "0.7.15",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@ -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,
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user