-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
votingPeriod
in GuildVetoGovernor.sol
is wrong
#754
Comments
0xSorryNotSorry marked the issue as sufficient quality report |
0xSorryNotSorry marked the issue as duplicate of #816 |
Trumpero changed the severity to QA (Quality Assurance) |
Trumpero marked the issue as grade-b |
Trumpero marked the issue as grade-c |
hey @Trumpero Also, the parent issue is labeled as grade A, while this one is grade c even after explaining the core issue |
I believe this issue is of low severity because assets are not at risk and functionalities are not impacted, it simply represents careless documentation or natspec.
When an issue is downgraded to QA, it will be included in the QA report of the warden for QA point evaluation. Based on my QA judging of this contest, you don't have enough QA points to reach grade-b, so all your QA issues are labeled as grade-C |
Lines of code
https://github.com/code-423n4/2023-12-ethereumcreditguild/blob/main/src/governance/GuildVetoGovernor.sol#L231
https://github.com/code-423n4/2023-12-ethereumcreditguild/blob/main/src/governance/LendingTermOffboarding.sol#L36
Vulnerability details
Impact
if we see the last 1 year data , roughly a block is mined in 12 seconds while in
GuildVetoGovernor
13s/block is hardcodedProof of Concept
The voting period is an important factor in on-chain governance systems, and considering the 1 block / 13 secs users will only be able to vote for 155hours(6 day + 13 hours), while it's expected to be 7 days period and this can be a factor in some veto proposals where a quorum is not achieved till the very end
There are multiple instances where time is measured through 13s/block
https://github.com/code-423n4/2023-12-ethereumcreditguild/blob/main/src/governance/GuildVetoGovernor.sol#L230
https://github.com/code-423n4/2023-12-ethereumcreditguild/blob/main/src/governance/LendingTermOffboarding.sol#L36
Tools Used
manual review
Recommended Mitigation Steps
The voting period should be based on last year's data should be 12 secs/block instead of 13 secs/block
Assessed type
Governance
The text was updated successfully, but these errors were encountered: