diff --git a/package.json b/package.json index 312b5a3..4714554 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ghost-dao-interface", "private": true, - "version": "0.6.5", + "version": "0.6.6", "type": "module", "scripts": { "dev": "vite", diff --git a/src/hooks/staking/index.js b/src/hooks/staking/index.js index 97bb5ba..eca54da 100644 --- a/src/hooks/staking/index.js +++ b/src/hooks/staking/index.js @@ -69,16 +69,16 @@ export const useWarmupInfo = (chainId, address) => { const { data: info, refetch } = useReadContract({ abi: StakingAbi, address: STAKING_ADDRESSES[chainId], - functionName: "getWarmupInfo", + functionName: "warmupInfo", args: [address], - scopeKey: `getWarmupInfo-${address}-${chainId}`, + scopeKey: `warmupInfo-${address}-${chainId}`, chainId: chainId, }); const warmupInfo = { - deposit: info ? new DecimalBigNumber(info.deposit, 9) : new DecimalBigNumber(0n, 9), - shares: info ? info.shares : 0n, - expiry: info ? Number(info.expiry) : 0, + deposit: info ? new DecimalBigNumber(info.at(0), 9) : new DecimalBigNumber(0n, 9), + shares: info ? info.at(1) : 0n, + expiry: info ? Number(info.at(2)) : 0, } return { warmupInfo, refetch }