Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Prep for NFL playoff 2023 edition #24

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions contracts/DefifaGovernor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,6 @@ contract DefifaGovernor is Governor, GovernorCountingSimple, IDefifaGovernor {
@return The delay in number of blocks.
*/
function votingDelay() public view override(IGovernor) returns (uint256) {
if (votingStartTime > block.timestamp)
viraj124 marked this conversation as resolved.
Show resolved Hide resolved
return (votingStartTime - block.timestamp) / _BLOCKTIME_SECONDS;

// no voting delay once voting is active
return 0;
}

Expand All @@ -284,7 +280,8 @@ contract DefifaGovernor is Governor, GovernorCountingSimple, IDefifaGovernor {
The amount of time that must go by for voting on a proposal to no longer be allowed.
*/
function votingPeriod() public pure override(IGovernor) returns (uint256) {
return 420000000000000069; // longtime
// the max value i.e 2**64 - 1
return 18446744073709551615; // longtime
}

/**
Expand Down