Description:
we have pause and unpause functions in invest token contract but non of the core functions like deposit and withdraw have whenNotPause modifier so if contract pause, it wont effect anything.
function pause() public onlyRole(PAUSER_ROLE) {
_pause();
}
/**
* @notice Unpauses the contract. Can only be called by accounts with PAUSER_ROLE.
*/
function unpause() public onlyRole(PAUSER_ROLE) {
_unpause();
}
Github username: -- Twitter username: -- Submission hash (on-chain): 0x5bd612725a58c9a9454ac89f151fbb38f6eb69ad38b734318b708dbb70399f7d Severity: medium
Description: we have pause and unpause functions in invest token contract but non of the core functions like deposit and withdraw have whenNotPause modifier so if contract pause, it wont effect anything.
Recommendation
add whenNotPause modifier to core functions