Dria

Swan
NFTHardhat
21,000 USDC
View results
Submission Details
Severity: low
Invalid

increaseAllowance exist but no function to decrease or withdraw allowance

Summary

There is an increase allowance but no funciotn that withdraws or decreases the allowance and give it back to the user

Vulnerability Details

function _increaseAllowance(address spender, uint256 amount) internal {
feeToken.approve(spender, feeToken.allowance(address(this), spender) + amount);
}

increaseAllowance can be used to increase allowance but no decreaseAllowance exist

Impact

Allowance cannot be decreased.

Tools Used

Code review

Recommendations

Implement a decreaseAllowance funcion

Updates

Lead Judging Commences

inallhonesty Lead Judge
12 months ago
inallhonesty Lead Judge 12 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.