Core Contracts

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

Potential Risk in deposit Function Using transferFrom Instead of safeTransferFrom in Treasury.sol

Summary
The deposit function in the Treasury contract uses the ERC-20 transferFrom method to deposit tokens. While this is a standard method, it lacks safety checks for token transfer failures.

Vulnerability Details
The transferFrom function used in the deposit method will not automatically revert on unexpected failures. This could allow for a failed deposit without clear error feedback, leading to an inconsistent state.

Impact
Severity: Low/Med
If a token contract fails or behaves unexpectedly, deposits could fail silently, leading to an inconsistent contract state.

Tools Used

  • Manual code review

Recommendations
Replace transferFrom with safeTransferFrom to ensure that all token transfers are checked for success and revert on failure, enhancing security.

Updates

Lead Judging Commences

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

Support

FAQs

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