Sparkn

CodeFox Inc.
DeFiFoundryProxy
15,000 USDC
View results
Submission Details
Severity: medium

Large transfers do not work with some ERC20 tokens

Summary

Large transfers do not work with some ERC20 tokens

Vulnerability Details

Some IERC20 implementations (e.g UNI, COMP) have special case logic in approve that sets allowance to type(uint96).max if the approval amount is uint256, may cause issues with systems that expect the value passed.

Impact

The above tokens may fail if the valued transferred is larger than uint96.

Tools Used

Manual code review

Recommendations

The recommendation is to not use such tokens for reward purpose or either carry out transactions in batches with maximum value transferred being within the type(uint96).max limit.

Support

FAQs

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