First Flight #12: Kitty Connect

First Flight #12: Kitty Connect
Beginner FriendlyFoundryNFTGameFi
100 EXP
View results
Submission Details
Severity: low
Invalid

Age of the cats will slightly vary in different chains

Summary

The age of a cat is determined by calculating the difference between the current timestamp and the timestamp recorded during its minting process. This timestamp, based on the current block timestamp in seconds since the Unix epoch, can vary across different blockchains.

Vulnerability Details

Different blockchain platforms exhibit unique characteristics such as differing numbers of blocks, block production rates, and frequencies and depths of reorganizations. Consequently, when transferring a cat from one blockchain to another, slight variations in the cat's age may occur.

Impact

The variability in the age of cats across blockchains could potentially disrupt off-chain functionalities, especially if they rely on consistent age information.

Tools Used

Manual review.

Recommendations

Consider conducting age calculations off-chain while retaining the date of birth on-chain for reference. This approach would ensure consistent age representation regardless of blockchain differences.

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Design choice

Support

FAQs

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