Submitted by hubble
HolyPaladinToken.sol#L228-L235
Function cooldown() is not protected when protocol is in emergency mode.
Its behavior is not consistent with the other major functions defined.
While other major functions like stake, unstake, lock, unlock, etc., of this contract is protected by checking for emergency flag and reverting,
this function cooldown() is not checked. The impact of this is that during emergency mode, users can set immediately the cooldown() and plan for unstaking when the emergency mode is lifted and cooldown period expires. This may not be the desirable behaviour expected by the protocol.
Contract Name : HolyPaladinToken.sol
Function cooldown()
Add checking for emergency mode for this function also.
Kogaroshi (Paladin) confirmed, resolved, and commented:
