Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

000000 - Superpool can not be paused despite the implemented functionality #278

Closed
sherlock-admin3 opened this issue Aug 24, 2024 · 0 comments
Labels
Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label Medium A Medium severity issue. Reward A payout will be made for this issue

Comments

@sherlock-admin3
Copy link

sherlock-admin3 commented Aug 24, 2024

000000

Medium

Superpool can not be paused despite the implemented functionality

Summary

Superpool can not be paused despite the implemented functionality

Vulnerability Detail

The Superpool contract is supposed to be pausable as first of all, it inherits the Pausable contract and it also has the following function:

function togglePause() external onlyOwner {
        if (Pausable.paused()) Pausable._unpause();
        else Pausable._pause();
    }

However, in order for any of the functions to not work whenever the contract is paused/not paused, they have to implement the whenNotPaused and whenPaused modifiers. None of the functions do that, thus the contract can not actually be paused despite the implemented functionality.

Impact

Superpool can not be paused despite the implemented functionality

Code Snippet

https://github.com/sherlock-audit/2024-08-sentiment-v2/blob/25a0c8aeaddec273c5318540059165696591ecfb/protocol-v2/src/SuperPool.sol#L25

Tool used

Manual Review

Recommendation

Use the whenNotPaused and whenPaused modifiers

Duplicate of #270

@github-actions github-actions bot closed this as completed Sep 5, 2024
@github-actions github-actions bot added Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label Medium A Medium severity issue. labels Sep 5, 2024
@sherlock-admin4 sherlock-admin4 changed the title Attractive Caramel Fox - Superpool can not be paused despite the implemented functionality 000000 - Superpool can not be paused despite the implemented functionality Sep 15, 2024
@sherlock-admin4 sherlock-admin4 added the Reward A payout will be made for this issue label Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label Medium A Medium severity issue. Reward A payout will be made for this issue
Projects
None yet
Development

No branches or pull requests

2 participants