For L2 chains Aave V3 provides another supply()
method. The L2Pool
contract is a calldata optimized extension of the Pool contract allowing users to pass compact calldata representation to reduce transaction costs on L2 rollups.
https://aave.com/docs/developers/smart-contracts/l2-pool
Gas fee for execution can be further reduces which supplying collateral to Aave on Arbitrum L2.
https://github.com/Cyfrin/2025-01-diva/blob/main/contracts/src/AaveDIVAWrapperCore.sol#L431C1-L436C11
Manual Review
A chain.id
check can be added to handle Aave supply()
call differently for Arbitrum contract.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.