Submitted by gpersoon
The functions getInitialUnstakeEntry contains a for loop that can be unbounded. This would mean it could run out of gas and the function would revert.
The array unstakeEntries can be made arbitrarily large by repeatedly calling activateCooldown with a small amount of tokens.
The impact is very low because the array unstakeEntries is separated per user and links to mgs.sender, so you can only shoot yourself in your foot.
Additionally the function getInitialUnstakeEntry isnt used in the smart contracts.
Recommend probably accepting the situation and add a comment in the function getInitialUnstakeEntry
Evert0x (Sherlock) acknowledged
