Lucene search
+L

2 matches found

Code423n4
Code423n4
added 2022/01/06 12:00 a.m.7 views

merge can fail due to tokenId collisions

Handle cmichel Vulnerability details The XDEFIDistribution.merge function burns tokens, which decreases the ERC721Enumerable.totalSupply and the generateNewTokenId function returns a token ID as the concatenation of the points and totalSupply + 1: function generateNewTokenIduint256 points interna...

6.7AI score
SaveExploits0
Code423n4
Code423n4
added 2022/01/04 12:00 a.m.13 views

_safeMint Will Fail Due To An Edge Case In Calculating tokenId Using The _generateNewTokenId Function

Handle leastwood Vulnerability details Impact NFTs are used to represent unique positions referenced by the generated tokenId. The tokenId value contains the position's score in the upper 128 bits and the index wrt. the token supply in the lower 128 bits. When positions are unlocked after expirin...

6.9AI score
SaveExploits0
Rows per page
Query Builder