Lucene search
+L

2 matches found

Code423n4
Code423n4
added 2022/04/02 12:0 a.m.13 views

Whole balance self transfer set user's cooldown to zero

Lines of code Vulnerability details Impact If a user transfers to self the whole balance, then user’s cooldown resets to zero. A user will have to reset its cooldown manually to current timestamp via cooldown call to be able to unstake in the future. As a transfer to self can happen by mistake an...

6.7AI score
SaveExploits0
Code423n4
Code423n4
added 2022/03/31 12:0 a.m.14 views

cooldown is set to 0 when the user sends all tokens to himself.

Lines of code Vulnerability details Impact In the beforeTokenTransfer function, cooldowns will be set to 0 when the user transfers all tokens to himself. Consider the following scenario Day 0: The user stakes 100 tokens and calls the cooldown function Day 10: the user wanted to unstake the tokens...

6.7AI score
SaveExploits0
Rows per page
Query Builder