code-423n4 / 2021-08-gravitybridge-findings

1 stars 0 forks source link

Immutable variables #34

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Handle

pauliax

Vulnerability details

Impact

Variables that do not change can be marked as immutable. This greatly reduces gas cots. Examples of such variables are: // These are set once at initialization bytes32 public state_gravityId; uint256 public state_powerThreshold;

jkilpatr commented 2 years ago

duplicate of #48