Skip to content

Commit

Permalink
fix: rename SECONDS_PER_BLOCK
Browse files Browse the repository at this point in the history
  • Loading branch information
cosinlink committed Dec 11, 2023
1 parent 664596f commit dfda759
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contracts/BC_fusion/BSCGovernor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ contract BSCGovernor is
@dev caution:
INIT_VOTING_DELAY, INIT_VOTING_PERIOD and INIT_MIN_PERIOD_AFTER_QUORUM are default in number of blocks, not seconds
*/
uint256 private constant SECONDS_PER_BLOCK = 3 seconds;
uint256 private constant INIT_VOTING_DELAY = 24 hours / SECONDS_PER_BLOCK;
uint256 private constant INIT_VOTING_PERIOD = 14 days / SECONDS_PER_BLOCK;
uint256 private constant BLOCK_INTERVAL = 3 seconds;
uint256 private constant INIT_VOTING_DELAY = 24 hours / BLOCK_INTERVAL;
uint256 private constant INIT_VOTING_PERIOD = 14 days / BLOCK_INTERVAL;
uint256 private constant INIT_PROPOSAL_THRESHOLD = 100 ether; // = 100 BNB
uint256 private constant INIT_QUORUM_NUMERATOR = 10; // for >= 10%

// starting propose requires totalSupply of GovBNB >= 10000000 * 1e18
uint256 private constant PROPOSE_START_GOVBNB_SUPPLY_THRESHOLD = 10_000_000 ether;
// ensures there is a minimum voting period (1 days) after quorum is reached
uint64 private constant INIT_MIN_PERIOD_AFTER_QUORUM = uint64(1 days / SECONDS_PER_BLOCK);
uint64 private constant INIT_MIN_PERIOD_AFTER_QUORUM = uint64(1 days / BLOCK_INTERVAL);

/*----------------- errors -----------------*/
error NotWhitelisted();
Expand Down

0 comments on commit dfda759

Please sign in to comment.