Skip to content

Commit

Permalink
Merge pull request #224 from pemulis/patch-1
Browse files Browse the repository at this point in the history
Update OptimisticGovernorModuleModal.tsx
  • Loading branch information
auryn-macmillan authored Aug 31, 2023
2 parents 0dfeac3 + eb92897 commit 5b2c91f
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ export const OptimisticGovernorModuleModal = ({
const [delayModule, setDelayModule] = useState<string>(
delayModules.length === 1 ? delayModules[0].address : "",
)
const [isWeth, setIsWeth] = useState<boolean>(false)
const [isWeth, setIsWeth] = useState<boolean>(true)
const [params, setParams] = useState<OptimisticGovernorModuleParams>({
finder: getFinder(safe.chainId),
owner: safe.safeAddress,
collateral: getCollateral(safe.chainId, isWeth),
bond: "1500",
bond: "2",
rules: "",
identifier: "0x4153534552545f54525554480000000000000000000000000000000000000000",
liveness: "86400",
Expand Down Expand Up @@ -174,8 +174,8 @@ export const OptimisticGovernorModuleModal = ({
<Typography className={classes.errorMessage}>
{Number(params.bond) < 1500 && !isWeth
? "Warning: A minimum bond of 1,500 is recommended for USDC"
: Number(params.bond) < 1 && isWeth
? "Warning: A minimum bond of 1 is recommended for WETH"
: Number(params.bond) < 2 && isWeth
? "Warning: A bond of 2 is recommended for WETH"
: null}
</Typography>
</Grid>
Expand All @@ -187,8 +187,8 @@ export const OptimisticGovernorModuleModal = ({
onChange={(value) => onParamChange("liveness", value)}
/>
<Typography className={classes.errorMessage}>
{Number(params.liveness) < 21600
? "Warning: The minimum recommended liveness period is 6 hours."
{Number(params.liveness) < 86400
? "Warning: The minimum recommended liveness period is 24 hours."
: null}
</Typography>
</Grid>
Expand Down

1 comment on commit 5b2c91f

@vercel
Copy link

@vercel vercel bot commented on 5b2c91f Aug 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

zodiac-safe-app-ui – ./packages/app

zodiac-safe-app-ui-git-master-gnosis-guild.vercel.app
zodiac-safe-app-ui-gnosis-guild.vercel.app
zodiac-safe-app-ui.vercel.app

Please sign in to comment.