Submitted by MEP, also found by __141345__, 0xSky, antonttc, azephiar, cccz, CertoraInc, d3e4, datapunk, davidbrai, easy_peasy, hansfriese, hansfriese, MiloTruck, minhtrng, neumo, pcarranzav, peritoflores, PwnPatrol, R2, scaraven, teawaterwire, Tointer, tonisives, unforgiven, V_B, wagmi, zkhorse, and zzzitron
Token.sol#L118
Because the IDs of the founders tokens are wrongly computed, some of them can have an id higher than 100 and then never be minted.
If a founder has percentage of pct, then pct IDs between 0 and 99 should be given to him in the mapping tokenRecipient, such that if a token is minted with tokenId % 100 equal to one of its IDs, it is minted directly to him. But the modulo is not correctly done at when the mapping is filled, so some IDs of a founder can be higher than 100.
It happens for example if Alice has 10% and Bob gas 11%. For Alice, schedule is equal to 10, so Alices will have the ids 0, 10, 20, , 90. But for Bob, schedule is also equal to 9. So it will have the ids 1, 11, 21, , 91, 100. Indeed, Bob cant have the ID 0 because it belongs to Alice, same for the ID 10 etc. The last eleventh ID that is given to Bob is 100, that cant be reached.
This happens for example when with two founders the percentages verify (100 / pct1) - (100 / pct2) == 1. So (11%, 12%) or (25%, 33%) will behave samely (with more token lost in some case).
Replace the line 118 of Token.sol by baseTokenId = (baseTokenId + schedule) % 100;.
Alex the Entreprenerd (judge) commented:
tbtstl (Nouns Builder) disagreed with severity and commented:
Alex the Entreprenerd (judge) commented:
