Beginner FriendlyDeFiFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

`onlyRole` modifier is not required for `Laundrette::addToTheGang` function

Description

Laundrette::addToTheGang can only be called by the godFather hence Laundrette::isGodFather modifier is enough for this function

Impact

For every added member Laundrette::addToTheGang function some extra gas is spent by checking for onlyRole

Proof of Concept

function addToTheGang(address account) external onlyRole("gangmember") <-@ {
...
...
..
.
}

Recommended Mitigation

The onlyRole modifier in Laundrette::addToTheGang function is not required and can be safely removed.

Updates

Lead Judging Commences

n0kto Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.