hats-finance / OLD-Accumulated-finance-0x75278bcc0fa7c9e3af98654bce195eaf3bb6a784

MIT License
0 stars 0 forks source link

Contract will stop functioning in the year 2106 #8

Open hats-bug-reporter[bot] opened 2 months ago

hats-bug-reporter[bot] commented 2 months ago

Github username: -- Twitter username: -- Submission hash (on-chain): 0xf83ec142dee1fbdac67614b3e5385b645d83abd069579a44233ad05d602b0639 Severity: low

Description: Description\ Limiting the timestamp to fit in a uint32 will cause the call below to start reverting in 2106.

Attachments

  1. Proof of Concept (PoC)
uint32 timestamp = block.timestamp.safeCastTo32();
  1. Revised Code

Consider replacing the uint32 timestamp with a larger type like uint64.

0xRizwan commented 2 months ago

Invalid issue.

Staking contracts are out of scope.