Closed c4-bot-10 closed 10 months ago
The submission does not provide any demonstration of the issue, reasoning and code blocks.
0xSorryNotSorry marked the issue as insufficient quality report
No impact, it's the intended mechanism.
Trumpero marked the issue as unsatisfactory: Invalid
Lines of code
https://github.com/code-423n4/2023-12-ethereumcreditguild/blob/main/src/tokens/ERC20MultiVotes.sol#L427
Vulnerability details
Impact
Detailed description of the impact of this finding. Greedy Vote Freeing: The _decrementVotesUntilFree function uses a greedy algorithm that could potentially free more votes than necessary, which might not be the most gas-efficient approach. A more precise algorithm could be considered.
Proof of Concept
Provide direct links to all referenced code in GitHub. Add screenshots, logs, or any other relevant proof that illustrates the concept. function _decrementVotesUntilFree(address user, uint256 votes) internal { uint256 userFreeVotes = freeVotes(user);
Tools Used
Recommended Mitigation Steps
Assessed type
Context