Skip to content

Commit

Permalink
Fast deploy governance
Browse files Browse the repository at this point in the history
  • Loading branch information
neokry committed Jan 9, 2024
1 parent 6871ad9 commit 166871a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ export const ReviewAndDeploy: React.FC<ReviewAndDeploy> = ({ 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'),
Expand Down
13 changes: 8 additions & 5 deletions apps/web/src/pages/dao/[network]/[token]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<DaoPageProps> = ({ chain, collectionAddress }) => {
const DaoPage: NextPageWithLayout<DaoPageProps> = ({ chainId, collectionAddress }) => {
const { query } = useRouter()

const { address: signerAddress } = useAccount()
Expand All @@ -42,7 +42,7 @@ const DaoPage: NextPageWithLayout<DaoPageProps> = ({ chain, collectionAddress })
abi: auctionAbi,
address: addresses.auction,
functionName: 'owner',
chainId: chain.id,
chainId,
})

const sections = [
Expand Down Expand Up @@ -83,6 +83,9 @@ const DaoPage: NextPageWithLayout<DaoPageProps> = ({ 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 (
<Flex direction="column" pb="x30">
Expand Down Expand Up @@ -157,7 +160,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
if (!initialized) {
return {
props: {
chain,
chainId: chain.id,
addresses,
collectionAddress,
},
Expand Down

0 comments on commit 166871a

Please sign in to comment.