hats-finance / ether-fi-0x36c3b77853dec9c4a237a692623293223d4b9bc4

Smart Contracts for Ether Fi dapp
1 stars 1 forks source link

Missing storage gap for upgradeable contracts #8

Open hats-bug-reporter[bot] opened 10 months ago

hats-bug-reporter[bot] commented 10 months ago

Github username: @Rotcivegaf Submission hash (on-chain): 0xbb9d31c12283be8881f204f12e6299ba2463e67b6a452ddb23d605d9e41e528c Severity: low

Description:

Description

Storage gaps are a convention for reserving storage slots in a base contract, allowing future versions of that contract to use up those slots without affecting the storage layout of child contracts. storage-gaps recommendation

This list of contracts are an Upgradeable buy don't have gap:

Recommendation

Add an appropriate storage gap at the end of contracts:

uint256[50] private __gap;
seongyun-ko commented 10 months ago

This is unnecessary if we do not consider inheritance. we don't

rotcivegaf commented 10 months ago

Agree, sorry, in the rush I couldn't make sure if it was really a bug You can close this