Platform: Code4rena
Start Date: 22/07/2021
Pot Size: $80,000 USDC
Total HM: 6
Participants: 14
Period: 7 days
Judge: ghoulsol
Total Solo HM: 3
Id: 21
League: ETH
Rank: 11/14
Findings: 1
Award: $720.12
🌟 Selected for report: 3
🚀 Solo Findings: 0
30.1784 USDC - $30.18
patitonar
Reduce gas usage when reading the lpAddressProvider variable in AaveV2
Manual review
Replace the variable for a constant. For example: ILendingPoolAddressesProvider public constant lpAddressProvider = ILendingPoolAddressesProvider(0xB53C1a33016B2DC2fF3653530bfF1848a515c8c5);
#0 - Evert0x
2021-07-29T12:00:11Z
#1
🌟 Selected for report: patitonar
229.9835 USDC - $229.98
patitonar
Reduce gas costs on constructor by not storing the result of a method invocation in a variable
Manual Review
Use the result directly. Example: want.approve(address(getLp()), uint256(-1));
🌟 Selected for report: patitonar
229.9835 USDC - $229.98
patitonar
Reduce bytecode size of AaveV2 by removing Ownable given that there is no functionality for owners
Manual Review
Update AaveV2 to only extend from IStrategy and remove Ownable import
🌟 Selected for report: patitonar
229.9835 USDC - $229.98
patitonar
Reduce gas cost when reading the underlying variable from NativeLock given that it is only set once in the constructor
Manual review
IERC20 public override immutable underlying;