QA Report #83
Labels
bug
Something isn't working
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
N-01: Check
newMax
andoldMax
values insetMaxDelegates
function ofERC20MultiVotes.sol
Description
In the
setMaxDelegates
function forERC20MultiVotes.sol
, ifnewMax
is less thanoldMax
there might be some accounts with more delegates than what the new maxDelegates value allows.Adding the condition
newMax
>=oldMax
would fix this issue.N-02: Cannot set
canContractExceedMaxDelegates
to false insetContractExceedMaxDelegates
function ofERC20MultiVotes.sol
Description
If the
canExceedMax
argument is set to false, the functioncanContractExceedMaxDelegates
will revert not allowing an authorized admin to revoke the ability for an account to exceed the max delegates allowed.Removing the
canExceedMax
from the condition in the function should allowcanContractExceedMaxDelegates
to be set to false.The text was updated successfully, but these errors were encountered: