Skip to main content

FeiDAO

Functions

constructor

function constructor(
contract ERC20VotesComp tribe,
contract ICompoundTimelock timelock,
address guardian
) public

Parameters

NameTypeDescription
tribecontract ERC20VotesComp
timelockcontract ICompoundTimelock
guardianaddress

votingDelay

function votingDelay() public returns (uint256)

module:user-config

Delay, in number of block, between the proposal is created and the vote starts. This can be increassed to leave time for users to buy voting power, of delegate it, before the voting of a proposal starts.

votingPeriod

function votingPeriod() public returns (uint256)

module:user-config

Delay, in number of blocks, between the vote start and vote ends.

NOTE: The {votingDelay} can delay the start of the vote. This must be considered when setting the voting duration compared to the voting delay.

quorum

function quorum(
uint256
) public returns (uint256)

Parameters

NameTypeDescription
``uint256

proposalThreshold

function proposalThreshold() public returns (uint256)

Part of the Governor Bravo's interface: "The number of votes required in order for a voter to become a proposer".

setVotingDelay

function setVotingDelay(
uint256 newVotingDelay
) public

Parameters

NameTypeDescription
newVotingDelayuint256

setVotingPeriod

function setVotingPeriod(
uint256 newVotingPeriod
) public

Parameters

NameTypeDescription
newVotingPerioduint256

setQuorum

function setQuorum(
uint256 newQuorum
) public

Parameters

NameTypeDescription
newQuorumuint256

setProposalThreshold

function setProposalThreshold(
uint256 newProposalThreshold
) public

Parameters

NameTypeDescription
newProposalThresholduint256

__rollback

function __rollback(
uint256 eta
) external

one-time option to roll back the DAO to old GovernorAlpha

guardian-only, and expires after the deadline. This function is here as a fallback in case something goes wrong.

Parameters

NameTypeDescription
etauint256

__executeRollback

function __executeRollback() external

complete the rollback

getVotes

function getVotes(
address account,
uint256 blockNumber
) public returns (uint256)

Parameters

NameTypeDescription
accountaddress
blockNumberuint256

state

function state(
uint256 proposalId
) public returns (enum IGovernor.ProposalState)

Parameters

NameTypeDescription
proposalIduint256

propose

function propose(
address[] targets,
uint256[] values,
bytes[] calldatas,
string description
) public returns (uint256)

Parameters

NameTypeDescription
targetsaddress[]
valuesuint256[]
calldatasbytes[]
descriptionstring

_execute

function _execute(
uint256 proposalId,
address[] targets,
uint256[] values,
bytes[] calldatas,
bytes32 descriptionHash
) internal

Parameters

NameTypeDescription
proposalIduint256
targetsaddress[]
valuesuint256[]
calldatasbytes[]
descriptionHashbytes32

_cancel

function _cancel(
address[] targets,
uint256[] values,
bytes[] calldatas,
bytes32 descriptionHash
) internal returns (uint256)

Parameters

NameTypeDescription
targetsaddress[]
valuesuint256[]
calldatasbytes[]
descriptionHashbytes32

_executor

function _executor() internal returns (address)

supportsInterface

function supportsInterface(
bytes4 interfaceId
) public returns (bool)

Parameters

NameTypeDescription
interfaceIdbytes4

Events

QuorumUpdated

event QuorumUpdated(
uint256 oldQuorum,
uint256 newQuorum
)

Parameters

NameTypeDescription
oldQuorumuint256
newQuorumuint256

VotingDelayUpdated

event VotingDelayUpdated(
uint256 oldVotingDelay,
uint256 newVotingDelay
)

Parameters

NameTypeDescription
oldVotingDelayuint256
newVotingDelayuint256

VotingPeriodUpdated

event VotingPeriodUpdated(
uint256 oldVotingPeriod,
uint256 newVotingPeriod
)

Parameters

NameTypeDescription
oldVotingPerioduint256
newVotingPerioduint256

ProposalThresholdUpdated

event ProposalThresholdUpdated(
uint256 oldProposalThreshold,
uint256 newProposalThreshold
)

Parameters

NameTypeDescription
oldProposalThresholduint256
newProposalThresholduint256

RollbackQueued

event RollbackQueued(
uint256 eta
)

Parameters

NameTypeDescription
etauint256

Rollback

event Rollback(
)