-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
29bd678
commit 0ec2e46
Showing
3 changed files
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,18 +18,19 @@ contract ZetaXPGov is Governor, GovernorSettings, GovernorCountingSimple, Govern | |
constructor( | ||
ZetaXP_V2 _xpNFT, | ||
TimelockController _timelock, | ||
uint256 _quorumPercentage // Set the quorum percentage (e.g., 4%) | ||
uint256 _quorumPercentage, // Set the quorum percentage (e.g., 4%) | ||
bytes32 _tag | ||
) | ||
Governor("ZetaXPGov") | ||
GovernorSettings(7200 /* 1 day */, 50400 /* 1 week */, 0) | ||
GovernorTimelockControl(_timelock) | ||
{ | ||
xpNFT = _xpNFT; | ||
quorumPercentage = _quorumPercentage; | ||
tagValidToVote = _tag; | ||
} | ||
|
||
// @todo: implement access control | ||
function setTagValidToVote(bytes32 _tag) external { | ||
function setTagValidToVote(bytes32 _tag) external onlyGovernance { | ||
Check warning Code scanning / Slither Conformance to Solidity naming conventions Warning
Parameter ZetaXPGov.setTagValidToVote(bytes32)._tag is not in mixedCase
|
||
tagValidToVote = _tag; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters