Submitted by cmichel, also found by gzeon and 0x1f8b
The ProtocolGovernance._numberOfValidTokens can be decreased by the admin in the ProtocolGovernance.removeFromTokenWhitelist function:
This function can be called repeatedly until the _numberOfValidTokens is zero.
The _numberOfValidTokens is wrong and with it the tokenWhitelist().
It seems that _numberOfValidTokens should only be decreased if the token was previously allowed:
0xleastwood (judge) commented:
0xleastwood (judge) commented:
MihanixA (Mellow Protocol) commented:
