Closed code423n4 closed 2 years ago
_addFounders allow founders to own all tokens
The _addFounders method allows setting the founders percent ownership to 100%, which then makes minting tokens impossible because it hangs on an infinite loop.
To fix that and reject the contract creation with 100% funders ownership, this line should be changed to
if ((totalOwnership += uint8(founderPct)) >= 100) revert INVALID_FOUNDER_OWNERSHIP(); That is, use a >= comparison instead of >
Dup of #347
Judge has assessed an item in Issue #357 as Medium risk. The relevant finding follows: