Core Contracts

Regnum Aurum Acquisition Corp
HardhatReal World AssetsNFT
77,280 USDC
View results
Submission Details
Severity: low
Invalid

Potential Failure of Non-Standard ERC20 Token Deposits on Treasury.sol

Summary

The deposit function uses IERC20.transferFrom which may fail on non-standard ERC20 tokens (e.g. tokens with no return value).

Vulnerability Details

IERC20(token).transferFrom(msg.sender, address(this), amount);

Impact

  • Deposits for certain tokens (e.g. USDT on Ethereum mainnet) will fail, reducing protocol compatibility.

  • Potential loss of funds if a revert is not handled.

Tools Used

Recommendations

Use OpenZeppelin's SafeERC20.safeTransferFrom to handle all types of ERC20 tokens.

SafeERC20.safeTransferFrom(IERC20(token), msg.sender, address(this), amount);
Updates

Lead Judging Commences

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Invalidated
Reason: Known issue
Assigned finding tags:

[INVALID] SafeERC20 not used

LightChaser Low-60

Support

FAQs

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