The Standard

The Standard
DeFiHardhat
20,000 USDC
View results
Submission Details
Severity: low
Invalid

Approve zero first

Summary

Some ERC20 tokens (like USDT) do not work when changing the allowance from an existing non-zero allowance value. For example, Tether, (USDT)

Impact

The approve() function, will revert if the current approval is not zero to protect against front-running changes of approvals.

Tools Used

Manual review

Recommendations

Consider including a requirement that the allowance is first set to zero before setting it to the new value to take all tokens into account

Updates

Lead Judging Commences

hrishibhat Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Known issue
Assigned finding tags:

informational/invalid

Support

FAQs

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