code-423n4 / 2021-10-badgerdao-findings

0 stars 0 forks source link

Methods should be declared external #53

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Handle

WatchPug

Vulnerability details

For the functions that are never called from the current contract. These methods can be declared as external instead of public in order to save gas and make the reader aware, that the method is only called by an external entity.

For example:

0xleastwood commented 2 years ago

3