First Flight #21: KittyFi

First Flight #21
Beginner FriendlyDeFiFoundry
100 EXP
View results
Submission Details
Severity: high
Invalid

Deposits Not Yielding Interest

Summary

The depawsitMeowllateral function calls executeDepawsit in KittyVault, but there is no subsequent action to supply the deposited collateral to Aave for earning yield.

Vulnerability Details

function depawsitMeowllateral(address _token, uint256 _ameownt) external tokenExists(_token) {
IKittyVault(tokenToVault[_token]).executeDepawsit(msg.sender, _ameownt);
}

Impact

Deposited funds are not utilized to generate interest, potentially leading to user dissatisfaction and loss of intended protocol functionality.

Tools Used

manual review

Recommendations

Include a call to supply the deposited collateral to Aave immediately after executing the deposit. The updated function could be:

function depawsitMeowllateral(address _token, uint256 _ameownt) external tokenExists(_token) {
IKittyVault(tokenToVault[_token]).executeDepawsit(msg.sender, _ameownt);
IKittyVault(tokenToVault[_token]).purrrCollateralToAave(_ameownt);
}
Updates

Lead Judging Commences

shikhar229169 Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.