update to latest governance address

Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
Uncle Fatso 2026-02-20 13:40:46 +03:00
parent aaae299b32
commit e05fc99296
Signed by: f4ts0
GPG Key ID: 565F4F2860226EBB
4 changed files with 11 additions and 7 deletions

View File

@ -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",

View File

@ -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 = {

View File

@ -12,7 +12,7 @@ const GovernanceInfoText = () => {
ghostDAOs adaptive governance system algorithmically sets minimum collateral based on activity. ghostDAOs adaptive governance system algorithmically sets minimum collateral based on activity.
&nbsp;<Link &nbsp;<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>

View File

@ -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 };