31558 - [SC - Insight] Discrepancy in MAX_PROPOSAL_NUMERATOR Value in ...
Last updated
Was this helpful?
Last updated
Was this helpful?
Submitted on May 21st 2024 at 09:40:57 UTC by @Limbooo for
Report ID: #31558
Report type: Smart Contract
Report severity: Insight
Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/AlchemixGovernor.sol
Impacts:
Contract fails to deliver promised returns, but doesn't lose value
The AlchemixGovernor
contract contains a discrepancy between the implemented MAX_PROPOSAL_NUMERATOR
value and the value specified in the official veALCX Launch Parameters Proposal
document. The contract currently uses a value of 5000
(50%), while the documentation specifies a value of 6600
(66%).
The AlchemixGovernor
contract defines the MAX_PROPOSAL_NUMERATOR
as follows:
This means that currently, setting the % of total supply required to create a proposal (proposalNumerator
) to a value more than 50% and less than 66% will revert with 'numerator too high' error.
According to the veALCX Launch Parameters Proposal
document, the MAX_PROPOSAL_NUMERATOR
should be set to 6600
(66%):
MAX_PROPOSAL_NUMERATOR, 6600 (66%), Maximum threshold for quorum, hard coded, set up to never be changed except by an upgrade
The discrepancy between the documented and implemented values can have the following impacts:
Governance Integrity: The governance process may not function as intended, as the max threshold for creating proposals is lower than what was documented.
Community Trust: Community members who refer to the documentation may be confused by the mismatch, leading to mistrust in the governance system.
Here is a simple test case that you can use to verify the correct discrepancy behavior