PoolTogether Aave v3 contest - rotcivegaf's results

A protocol for no loss prize savings on Ethereum.

General Information

Platform: Code4rena

Start Date: 29/04/2022

Pot Size: $22,000 USDC

Total HM: 6

Participants: 40

Period: 3 days

Judge: Justin Goro

Total Solo HM: 2

Id: 114

League: ETH

PoolTogether

Findings Distribution

Researcher Performance

Rank: 29/40

Findings: 1

Award: $34.63

🌟 Selected for report: 0

🚀 Solo Findings: 0

Awards

34.6316 USDC - $34.63

Labels

bug
G (Gas Optimization)
sponsor confirmed

External Links

https://github.com/pooltogether/aave-v3-yield-source/blob/e63d1b0e396a5bce89f093630c282ca1c6627e44/contracts/AaveV3YieldSource.sol#L127 https://github.com/pooltogether/aave-v3-yield-source/blob/e63d1b0e396a5bce89f093630c282ca1c6627e44/contracts/AaveV3YieldSource.sol#L130 https://github.com/pooltogether/aave-v3-yield-source/blob/e63d1b0e396a5bce89f093630c282ca1c6627e44/contracts/AaveV3YieldSource.sol#L133

The contract variables aToken, rewardsController, poolAddressesProviderRegistry must be immutable to save gas

IAToken public immutable aToken; IRewardsController public immutable rewardsController; IPoolAddressesProviderRegistry public immutable poolAddressesProviderRegistry;

extend this report: If change the aToken should also change the constructor https://github.com/pooltogether/aave-v3-yield-source/blob/e63d1b0e396a5bce89f093630c282ca1c6627e44/contracts/AaveV3YieldSource.sol#L183

- IERC20(_tokenAddress()).safeApprove(address(_pool()), type(uint256).max); + IERC20(_aToken.UNDERLYING_ASSET_ADDRESS()).safeApprove(address(_pool()), type(uint256).max);
AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter