Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 1.14 KB

Whitelisted tokens limit.md

File metadata and controls

30 lines (24 loc) · 1.14 KB

_ragequit function is iterating over all whitelisted tokens.

If the number of tokens is too big, a transaction can run out of gas and all funds will be blocked forever.

Recommendation:

A simple solution would be just limiting the number of whitelisted tokens.

If the intention is to invest in many new tokens over time, and it’s not an option to limit the number of whitelisted tokens, it’s possible to add a function that removes tokens from the whitelist.

For example, it’s possible to add a new type of proposal that is used to vote on token removal if the balance of this token is zero. Before voting for that, shareholders should sell all the balance of that token.


Slide Screenshot

030.jpg


Slide Text

  • ConsenSys Audit The Lao Finding 5.5
  • Denial-of-Service
  • Major Severity
  • Whitelist Token List
  • Gas Limit
  • Limit/Prune List

References


Tags