Uno-Re / unore-uno-dao

0 stars 0 forks source link

[I-03] Redundant modifier #19

Open madMax92221 opened 10 months ago

madMax92221 commented 10 months ago

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 commented 9 months ago

fixed at commit https://github.com/Uno-Re/unore-uno-dao/commit/1190ea19adae046c7e7fd1e7aea8787f59e2e43c