Open code423n4 opened 2 years ago
WatchPug
https://github.com/code-423n4/2021-10-ambire/blob/bc01af4df3f70d1629c4e22a72c19e6a814db70d/contracts/wallet/Zapper.sol#L69-L72
Some storage variables include admin, lendingPool and aaveRefCode are unnecessary as they will never be changed.
admin
lendingPool
aaveRefCode
Change to immutable can save gas.
immutable
Duplicate of #5
Using this one as the original issue as it's concise and the description doesn't have an extra variable
Handle
WatchPug
Vulnerability details
https://github.com/code-423n4/2021-10-ambire/blob/bc01af4df3f70d1629c4e22a72c19e6a814db70d/contracts/wallet/Zapper.sol#L69-L72
Some storage variables include
admin
,lendingPool
andaaveRefCode
are unnecessary as they will never be changed.Change to
immutable
can save gas.