Skip to content

Commit

Permalink
Merge pull request DMDcoin#42 from SurfingNerd/final
Browse files Browse the repository at this point in the history
codefreeze diamond-contracts-dao
  • Loading branch information
SurfingNerd authored Nov 20, 2024
2 parents ff38959 + b716d07 commit 8080eb5
Show file tree
Hide file tree
Showing 4 changed files with 453 additions and 1,379 deletions.
14 changes: 9 additions & 5 deletions contracts/DiamondDao.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { EnumerableSet } from "@openzeppelin/contracts/utils/structs/EnumerableS
import { Initializable } from "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import { ReentrancyGuardUpgradeable } from "@openzeppelin/contracts-upgradeable/utils/ReentrancyGuardUpgradeable.sol";

import "diamond-contracts-core/contracts/ValueGuards.sol";
import "diamond-contracts-core/contracts/lib/ValueGuards.sol";
import { IDiamondDao } from "./interfaces/IDiamondDao.sol";
import { IValidatorSetHbbft } from "./interfaces/IValidatorSetHbbft.sol";
import { IStakingHbbft } from "./interfaces/IStakingHbbft.sol";
Expand Down Expand Up @@ -34,7 +34,11 @@ contract DiamondDao is IDiamondDao, Initializable, ReentrancyGuardUpgradeable, V
/// @notice To make sure we don't exceed the gas limit updating status of proposals
uint256 public daoPhaseCount;
uint256 public constant MAX_NEW_PROPOSALS = 1000;
uint64 public constant DAO_PHASE_DURATION = 2 hours;

///@dev this is the duration of each DAO phase.
///A full DAO cycle consists of 2 phases: Proposal and Voting,
/// therefore the full cycle duration is double that amount.
uint64 public constant DAO_PHASE_DURATION = 2 weeks;

address public reinsertPot;
uint256 public createProposalFee;
Expand Down Expand Up @@ -168,9 +172,9 @@ contract DiamondDao is IDiamondDao, Initializable, ReentrancyGuardUpgradeable, V
createProposalFeeAllowedParams[7] = 80 ether;
createProposalFeeAllowedParams[8] = 90 ether;

initAllowedChangeableParameter(
"setCreateProposalFee(uint256)",
"createProposalFee()",
__initAllowedChangeableParameter(
this.setCreateProposalFee.selector,
this.createProposalFee.selector,
createProposalFeeAllowedParams
);

Expand Down
Loading

0 comments on commit 8080eb5

Please sign in to comment.