Skip to content

Commit

Permalink
Praise data for issue #4
Browse files Browse the repository at this point in the history
  • Loading branch information
code423n4 committed Feb 16, 2023
1 parent 84ad328 commit e8b5947
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions data/Praise-G.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### [G-01]- There is no need to initialize state variables to '0'.
If a variable is not set/initialized, the default value is assumed (0, false, 0x0 … depending on the data type). You are simply wasting gas if you directly initialize it with its default value.

## Proof of Concept
```
uint16 private constant LENDER_REFERRAL_CODE_NONE = 0;
```
Affected Source code:
https://github.com/code-423n4/2023-02-ethos/blob/73687f32b934c9d697b97745356cdf8a1f264955/Ethos-Vault/contracts/ReaperStrategyGranarySupplyOnly.sol#L35

0 comments on commit e8b5947

Please sign in to comment.