Core Contracts

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

_maturityDate should be checked if is in the future

Summary

_maturityDate is not being checked if is in the future and no function can change it if not.

Vulnerability Details

_maturityDate should be checked if is in the future else it could break the contract

https://github.com/Cyfrin/2025-02-raac/blob/main/contracts/zeno/ZENO.sol#L20-L29

constructor(
address _usdc,
uint256 _maturityDate,
string memory _name,
string memory _symbol,
address _initialOwner
) Ownable(_initialOwner) ERC20(_name, _symbol) {
USDC = IERC20(_usdc);
MATURITY_DATE = _maturityDate;
}

Impact

_maturityDate is not being checked if is in the future, currently there is no way to change it if not, this could potentially break the contract.

Tools Used

manual

Recommendations

check if _maturityDate > block.timestamp

Updates

Lead Judging Commences

inallhonesty Lead Judge 4 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.