Lucene search
+L

2 matches found

Code423n4
Code423n4
added 2023/08/10 12:0 a.m.19 views

Unsafe typecasting can lead to tokens being locked in the contract

Lines of code Vulnerability details Impact In the createLock function the amount is calculated by casting the uint256 value to int128 in an unsafe way. Specifically the locked.amount is calculated as: locked.amount += int128int256value; could result in a negative value for locked.amount. For...

6.7AI score
SaveExploits0
Rows per page
Query Builder