HardhatDeFi
15,000 USDC
View results
Submission Details
Severity: low
Invalid

Insufficient Balance Check for wToken Redemption

Summary

The AaveDIVAWrapperCore::_redeemWToken function allows users to redeem wTokens for collateral tokens by burning the wTokens. The burn function checks for insufficient balance and reverts with an error. However, users may still face gas inefficiency and a poor experience if they try to redeem more tokens than they possess.

Impact

  • Gas Inefficiency: Users incur unnecessary gas fees for failed transactions due to insufficient balance.

  • User Experience: Although the revert error (ERC20InsufficientBalance) is clear, users may not expect the failure and could find it confusing.

Recommendations

  • Balance Check: Perform a balance check before the burn operation to prevent unnecessary gas usage and provide a clearer error message.

Updates

Lead Judging Commences

bube Lead Judge 9 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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