The getTotalMeowllateralInAave
function in KittyVault.sol
is designed to calculate the total collateral deposited in Aave. However, there is no mechanism implemented for distributing the earned interest back to the users proportionally.
The function correctly calculates the total collateral in Aave but does not include any logic for distributing the interest earned from this collateral back to the users who deposited funds.
Manual Review
Implement a mechanism to distribute the earned interest proportionally to the users based on their share of the total collateral. This could involve:
Tracking individual user deposits.
Calculating each user's share of the interest based on their proportional ownership of the total collateral.
Periodically or on-demand distributing the earned interest to the users.
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.