First Flight #21: KittyFi

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

`KittyVault::purrrCollateralFromAave` function ignores return value by i_aavePool.withdraw({asset:i_token,amount:_ameowntToWhiskdraw,to:address(this)}), as a result the computation has no effect.

Summary

KittyVault::purrrCollateralFromAave function implements withdrawal of collateral from Aave pool. KittyVault::purrrCollateralFromAave function ignores the return value by i_aavePool.withdraw({asset:i_token,amount:_ameowntToWhiskdraw,to:address(this)}), making the computation to be of no effect. The protocol would not be able to withdrawal collateral from Aave pool.

Vulnerability Details

function purrrCollateralFromAave(uint256 _ameowntToWhiskdraw) external onlyMeowntainer {
totalMeowllateralInVault += _ameowntToWhiskdraw;
@> i_aavePool.withdraw( { asset: i_token, amount: _ameowntToWhiskdraw, to: address(this) } );
}

Impact

The protocol would not be able to implement withdrawal of collateral from Aave pool, making the protocol to lose funds/assets

Tools Used

manual review

Recommendations

Ensure that the return values KittyVault::purrrCollateralFromAave function are used

Updates

Lead Judging Commences

shikhar229169 Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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