-
Notifications
You must be signed in to change notification settings - Fork 196
Description
boolean_comparison
Checks if an expression contains a comparison with a boolean literal, which is unnecessary.
(best practices)
division_before_multiplication
Checks for division operations before multiplications, which can result in value truncation.
external_call_in_loop
Checks if any functions contain any loops which perform calls to external functions.
(security)
missing_logs
Checks for publicly-accessible functions that make changes to storage variables without emitting logs.
(security)
storage_read_in_loop_condition
Checks for loops that contain a storage read in their condition, which can increase gas costs for each iteration.
(gas)
contract-name-as-type
Prevent the use of contracts as types in variable declarations
IERC20 public token instead of ERC20 public token
(force the use interfaces names as types)
avoid-magic-addresses
Use immutable variables or registry instead of hardcoding addresses
(avoid magic addresses)
move-to-interface
Move events and enums to interfaces as good practices
(best practices)