DittoETH

Ditto
DeFiFoundryOracle
55,000 USDC
View results
Submission Details
Severity: low
Invalid

Truncating `block.timestamp` can reduce the lifespan of a contract

Summary

Consider removing the casting to extend the lifespan of these contracts.

Vulnerability Details

https://github.com/Cyfrin/2023-09-ditto/blob/main/contracts/libraries/LibOrders.sol#L26

return uint32(block.timestamp - Constants.STARTING_TIME); // @dev(safe-cast)

Tools Used

Manual Review

Updates

Lead Judging Commences

0xnevi Lead Judge
almost 2 years ago
0xnevi Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

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