diff --git a/apps/web/src/modules/create-dao/components/ReviewAndDeploy/ReviewAndDeploy.tsx b/apps/web/src/modules/create-dao/components/ReviewAndDeploy/ReviewAndDeploy.tsx index cd5c6d5e6..5bb8d802b 100644 --- a/apps/web/src/modules/create-dao/components/ReviewAndDeploy/ReviewAndDeploy.tsx +++ b/apps/web/src/modules/create-dao/components/ReviewAndDeploy/ReviewAndDeploy.tsx @@ -118,9 +118,9 @@ export const ReviewAndDeploy: React.FC = ({ title }) => { } const govParams = { - timelockDelay: BigInt(toSeconds({ days: 2 }).toString()), - votingDelay: BigInt(toSeconds(auctionSettings.votingDelay)), - votingPeriod: BigInt(toSeconds(auctionSettings.votingPeriod)), + timelockDelay: BigInt(toSeconds({ seconds: 1 }).toString()), + votingDelay: BigInt(toSeconds({ seconds: 1 })), + votingPeriod: BigInt(toSeconds({ minutes: 10 })), proposalThresholdBps: auctionSettings?.proposalThreshold ? BigInt(Number((Number(auctionSettings?.proposalThreshold) * 100).toFixed(2))) : BigInt('0'), diff --git a/apps/web/src/pages/dao/[network]/[token]/index.tsx b/apps/web/src/pages/dao/[network]/[token]/index.tsx index f0a8754e9..82985b59a 100644 --- a/apps/web/src/pages/dao/[network]/[token]/index.tsx +++ b/apps/web/src/pages/dao/[network]/[token]/index.tsx @@ -23,16 +23,16 @@ import { useDaoStore, } from 'src/modules/dao' import { NextPageWithLayout } from 'src/pages/_app' -import { AddressType, Chain } from 'src/typings' +import { AddressType, CHAIN_ID } from 'src/typings' import { unpackOptionalArray } from 'src/utils/helpers' interface DaoPageProps { - chain: Chain + chainId: CHAIN_ID addresses: DaoContractAddresses collectionAddress: AddressType } -const DaoPage: NextPageWithLayout = ({ chain, collectionAddress }) => { +const DaoPage: NextPageWithLayout = ({ chainId, collectionAddress }) => { const { query } = useRouter() const { address: signerAddress } = useAccount() @@ -42,7 +42,7 @@ const DaoPage: NextPageWithLayout = ({ chain, collectionAddress }) abi: auctionAbi, address: addresses.auction, functionName: 'owner', - chainId: chain.id, + chainId, }) const sections = [ @@ -83,6 +83,9 @@ const DaoPage: NextPageWithLayout = ({ chain, collectionAddress }) } const activeTab = query?.tab ? (query.tab as string) : 'Activity' + const chain = PUBLIC_DEFAULT_CHAINS.find((x) => x.id === chainId) + + if (!chain) return null return ( @@ -157,7 +160,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => { if (!initialized) { return { props: { - chain, + chainId: chain.id, addresses, collectionAddress, },