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

[I-03] Redundant modifier #19

Open
madMax92221 opened this issue Jan 4, 2024 · 1 comment
Open

[I-03] Redundant modifier #19

madMax92221 opened this issue Jan 4, 2024 · 1 comment

Comments

@madMax92221
Copy link
Collaborator

Modifier notYieldCollectionPaused is used only once and that is in getYield() which is in VeUnoDaoYieldDistributor.sol. Because of that, the modifier code can be just pasted in the getYield()'s body.

modifier notYieldCollectionPaused() { //@audit used only once
        require(!yieldCollectionPaused, "VeUnoYD: YCP");
        _;
    }
@wankhede04
Copy link
Contributor

fixed at commit 1190ea1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants