Users are unable to collect their yield if tranche is paused
Users are unable to collect their yield if Tranche is paused, resulting in a loss of assets for the victims.\\nPer the contest's README page, it stated that the admin/owner is "RESTRICTED". Thus, any finding showing that the owner/admin can steal a user's funds, cause loss of funds or harm to the users, or cause the user's fund to be struck is valid in this audit contest.\\nQ: Is the admin/owner of the protocol/contracts TRUSTED or RESTRICTED?\\nRESTRICTED\\nThe admin of the protocol has the ability to pause the Tranche contract, and no one except for the admin can unpause it. If a malicious admin paused the Tranche contract, the users will not be able to collect their yield earned, leading to a loss of assets for them.\\n```\\nFile: Tranche.sol\\n    /// @notice Pause issue, collect and updateUnclaimedYield\\n    /// @dev only callable by management\\n    function pause() external onlyManagement {\\n        _pause();\\n    }\\n\\n    /// @notice Unpause issue, collect and updateUnclaimedYield\\n    /// @dev only callable by management\\n    function unpause() external onlyManagement {\\n        _unpause();\\n    }\\n```\\n\\nThe following shows that the `collect` function can only be executed when the system is not paused.\\n```\\nFile: Tranche.sol\\n    function collect() public nonReentrant whenNotPaused returns (uint256) {\\n        uint256 _lscale = lscales[msg.sender];\\n        uint256 accruedInTarget = unclaimedYields[msg.sender];\\n```\\n
Consider allowing the users to collect yield even when the system is paused.
Users are unable to collect their yield if Tranche is paused, resulting in a loss of assets for the victims.
```\\nFile: Tranche.sol\\n    /// @notice Pause issue, collect and updateUnclaimedYield\\n    /// @dev only callable by management\\n    function pause() external onlyManagement {\\n        _pause();\\n    }\\n\\n    /// @notice Unpause issue, collect and updateUnclaimedYield\\n    /// @dev only callable by management\\n    function unpause() external onlyManagement {\\n        _unpause();\\n    }\\n```\\n