Compare commits
No commits in common. "57661ab6b1f985bb8cfefc53c94a2fb4c779888d" and "8d23d55ae2021a1d042186d589f675d30f3f9922" have entirely different histories.
57661ab6b1
...
8d23d55ae2
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ghost-dao-interface",
|
"name": "ghost-dao-interface",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.6.7",
|
"version": "0.6.5",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@ -75,7 +75,7 @@ export const ClaimsArea = ({ chainId, address, epoch }) => {
|
|||||||
|
|
||||||
const setIsPayoutGhstInner = (value) => {
|
const setIsPayoutGhstInner = (value) => {
|
||||||
setIsPayoutGhst(value);
|
setIsPayoutGhst(value);
|
||||||
localStorage.setItem("bond-isGhstPayout", value);
|
localStorage.setitem("bond-isGhstPayout", value);
|
||||||
}
|
}
|
||||||
|
|
||||||
const warmupTooltip = `Your claim earns rebases during warmup. You can emergency withdraw, but this forfeits the rebases`;
|
const warmupTooltip = `Your claim earns rebases during warmup. You can emergency withdraw, but this forfeits the rebases`;
|
||||||
|
|||||||
@ -69,16 +69,16 @@ export const useWarmupInfo = (chainId, address) => {
|
|||||||
const { data: info, refetch } = useReadContract({
|
const { data: info, refetch } = useReadContract({
|
||||||
abi: StakingAbi,
|
abi: StakingAbi,
|
||||||
address: STAKING_ADDRESSES[chainId],
|
address: STAKING_ADDRESSES[chainId],
|
||||||
functionName: "warmupInfo",
|
functionName: "getWarmupInfo",
|
||||||
args: [address],
|
args: [address],
|
||||||
scopeKey: `warmupInfo-${address}-${chainId}`,
|
scopeKey: `getWarmupInfo-${address}-${chainId}`,
|
||||||
chainId: chainId,
|
chainId: chainId,
|
||||||
});
|
});
|
||||||
|
|
||||||
const warmupInfo = {
|
const warmupInfo = {
|
||||||
deposit: info ? new DecimalBigNumber(info.at(0), 9) : new DecimalBigNumber(0n, 9),
|
deposit: info ? new DecimalBigNumber(info.deposit, 9) : new DecimalBigNumber(0n, 9),
|
||||||
shares: info ? info.at(1) : 0n,
|
shares: info ? info.shares : 0n,
|
||||||
expiry: info ? Number(info.at(2)) : 0,
|
expiry: info ? Number(info.expiry) : 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
return { warmupInfo, refetch }
|
return { warmupInfo, refetch }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user