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.
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.
Balance Check: Perform a balance check before the burn operation to prevent unnecessary gas usage and provide a clearer error message.
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.