The current implementation of the Aave integration includes a hardcoded referralCode parameter set to 0 in the IAave(_aaveV3Pool).supply() function. Referral supply is currently inactive, and the parameter does not impact functionality. However, this program may be activated in the future through an Aave governance proposal, requiring this parameter to be configurable.
Hardcoded Referral Code:
The referral code is hardcoded to 0 in the current implementation.
If the referral program is activated through governance, the contract will need updates to support dynamic referral codes, potentially requiring a redeployment or additional governance actions. Currently the contract is not upgradeable.
Missed Opportunities:
The inability to configure the referral code dynamically may result in missed opportunities to utilize referral programs and generate additional benefits.
Manual code review.
Make Referral Code Configurable: Add a parameter for referralCode that can be set by the contract owner or governance.
Default to 0: Use 0 by default if referral supply is inactive.
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.