Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 822 Bytes

Use of modifiers for repeated checks.md

File metadata and controls

24 lines (21 loc) · 822 Bytes

It is recommended to use modifiers for common checks within different functions.

This will result in less code duplication in the given smart contract and adds significant readability into the code base.

Recommendation:

Use of modifiers for repeated checks


Slide Screenshot

131.jpg


Slide Text

  • ConsenSys Audit Balancer Finding 3.6
  • Code Refactoring
  • Repeated Checks
  • Error-prone
  • Repeated Checks -> Modifiers

References


Tags