update to latest governance address
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
aaae299b32
commit
e05fc99296
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ghost-dao-interface",
|
"name": "ghost-dao-interface",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.5.28",
|
"version": "0.5.29",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
@ -67,7 +67,7 @@ export const DISTRIBUTOR_ADDRESSES = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const GHOST_GOVERNANCE_ADDRESSES = {
|
export const GHOST_GOVERNANCE_ADDRESSES = {
|
||||||
[NetworkId.TESTNET_SEPOLIA]: "0x4823F1DC785D721eAdD2bD218E1eeD63aF67fBF4",
|
[NetworkId.TESTNET_SEPOLIA]: "0xaf7Ad1b83C47405BB9aa96868bCFbb6D65e4C2a1",
|
||||||
};
|
};
|
||||||
|
|
||||||
export const BONDING_CALCULATOR_ADDRESSES = {
|
export const BONDING_CALCULATOR_ADDRESSES = {
|
||||||
|
|||||||
@ -12,7 +12,7 @@ const GovernanceInfoText = () => {
|
|||||||
ghostDAO’s adaptive governance system algorithmically sets minimum collateral based on activity.
|
ghostDAO’s adaptive governance system algorithmically sets minimum collateral based on activity.
|
||||||
<Link
|
<Link
|
||||||
color={theme.colors.primary[300]}
|
color={theme.colors.primary[300]}
|
||||||
href="https://docs.dao.ghostchain.io/"
|
href="http://forum.ghostchain.io/"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>Learn more here.</Link>
|
>Learn more here.</Link>
|
||||||
|
|||||||
@ -116,11 +116,15 @@ export const useProposalThreshold = (chainId, name) => {
|
|||||||
let threshold = new DecimalBigNumber(data ?? 0n, decimals);
|
let threshold = new DecimalBigNumber(data ?? 0n, decimals);
|
||||||
|
|
||||||
const { proposalCount } = useProposalCount(chainId);
|
const { proposalCount } = useProposalCount(chainId);
|
||||||
const { proposalId } = useProposalDetailsAt(chainId, proposalCount === 0n ? 0n : proposalCount - 1n);
|
|
||||||
const { state } = useProposalState(chainId, proposalId);
|
|
||||||
|
|
||||||
if (state < 2) {
|
if (proposalCount !== 0n) {
|
||||||
threshold = new DecimalBigNumber(activeProposedLock ?? 0n, decimals);
|
const lastIndex = proposalCount === 0n ? 0n : proposalCount - 1n
|
||||||
|
const { proposalId } = useProposalDetailsAt(chainId, lastIndex);
|
||||||
|
const { state } = useProposalState(chainId, proposalId);
|
||||||
|
|
||||||
|
if (state < 2) {
|
||||||
|
threshold = new DecimalBigNumber(activeProposedLock ?? 0n, decimals);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return { threshold };
|
return { threshold };
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user