Closed code423n4 closed 3 years ago
pmerkleplant
The variables admin, lendingPool, aaveRefCode and allowedSpenders are all set in the constructor and never changed again. Declaring them as immutable saves gas.
admin
lendingPool
aaveRefCode
allowedSpenders
fixed in https://github.com/AmbireTech/adex-protocol-eth/commit/03b6cf72c4c167b320133bc8ab0bd2d0e3ec5f65
except allowedSpenders cannot be immutable cause it's a mapping
Duplicate of #29
Handle
pmerkleplant
Vulnerability details
Impact
The variables
admin
,lendingPool
,aaveRefCode
andallowedSpenders
are all set in the constructor and never changed again. Declaring them as immutable saves gas.