Referral code to Aave is hardcoded, so Diva protocol cannot earn benefits from it.
The AaveDIVAWrapper when supplying to Aave, passes hardcoded referral code = 0 (which equals to 'no referral code'), despite the referral program being disabled currently it can be introduced in the future. Considering the fact
that Diva Protocol can manage a lot of donate pools with lots of value, AaveDIVAWrapper could benefit from referral program if it would be introduced in the future. For example it can spend the earned benefits from the referral program to buy additional insurance.
If the referral program would be introduced in the future the protocol cannot earn potential benefits from that program on Aave.
Manual Review
Add owner restricted function that can adjust the referral code passed to the Aave protocol
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.